diff --git a/.editorconfig b/.editorconfig index 7c511996a1..e497deceac 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,14 +3,12 @@ root = true -[*.{cs,py,json,cfg}] +[*.{json,cfg}] indent_style = space indent_size = 2 -[*.py] -indent_size = 4 - -[*.cs] +[*.{cs,py}] +indent_style = space indent_size = 4 # Microsoft .NET properties diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index c3d6a32fd4..30abfb89e3 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -1,2 +1,3 @@ fbe9985b182e64aa110aef3f8d4336887550ff8f eba58b2225c2d33e091b4c584904418d82853092 +2b1f4a2df600df58374b4f43e92ac9ee1531900b diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2e6724d89..a24eab423c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,17 +6,17 @@ on: # yamllint disable-line rule:truthy pull_request: {} push: branches: - - "*" + - "**" tags: - "v*" env: - UNITY_VERSION: "2019.4.24f1" + UNITY_VERSION: "2019.4.25f1" UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} # If UNITY_SERIAL is not set, then use a hardcoded license. Otherwise, don't set this, so the game-ci actions will use EMAIL/PASS/SERIAL - UNITY_LICENSE: ${{ fromJSON('["\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \nGYC1YpQHTB2q5CllgJhlpihJuAk=WE8iCxEU2CEWYaVo4EiFJzCmftuq994dQk7wPenZcQ0VZhJ7eXYLkxbJSXGCPbYv+Bphz0T0mhEy\nq2fV05Yfp1xiKryawbiA7kk7wIY6qTo35Oex+jEg5DX1V2Rf3uUeXfareHagnHTt43+slTCN1gNd\nbPHZhHetWWYBECMCkt95ISJg8R2eIxT2MeeHoey2Xr4+Y0MEJE57cmj2hYcd1rg5S6sbnovBlav4\nS5GdvS8ZufejTvuYrvhLMA+BBnJ2g1elqMaYJZu5nV1J2cTI/Xaipvp265CM5lykzRVrQAHxz5zt\n9M6hFRxnhRGamyTPOtxcCwG9Cl4xYKS1TyhEww==", null]')[secrets.UNITY_SERIAL != null] }} + UNITY_LICENSE: ${{ fromJSON('["\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \nxCBKYap0JQVBqX22jba4k5Da5t0=n8eYH6Exi6mpw6onE5blxgQY1bAb+NLrsblMlFLUTPVTGw5KmugyVHedyZiI47D3nZVK/FpGaVxJ\n2xcNBr8yR1lfQrakloAZhvlCTiNi/O8N+6aHGZgyi/5+2SLqj0E/ZB+bVlTaSioLy/cF6iOt0d0T\nvW+VEdhht9iWrKKeNBakcXGccX5tQhJFaTR8aYevp0t0TMz3cfGPhs5qDivufqoFl34Y6qa8HjAC\n+OvrlD0TIgMyev+czK0KMIRsT/euOoyOHupXb93BuiMWceRIqf4mYvPKJbhx15Zy3uxHbsF6lV8q\nGah5JCb8iGRTDmG2JzMg6pXCjiznPFNk4Tkl7Q==", null]')[secrets.UNITY_SERIAL != null] }} jobs: configuration: @@ -37,8 +37,8 @@ jobs: stamp: ${{ steps.version.outputs.stamp }} prerelease: ${{ steps.version.outputs.prerelease }} changelog: ${{ steps.changelog.outputs.changelog }} - btbgithub: ${{ steps.github.outputs.btbgithub }} basename: ${{ steps.github.outputs.basename }} + description: ${{ steps.github.outputs.description}} steps: - name: Checkout repository uses: actions/checkout@v2 @@ -81,18 +81,31 @@ jobs: CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" echo "::set-output name=changelog::$CHANGELOG" - - name: Set github suffix if relevant + - name: Set custom app name and package name, if relevant id: github env: PRERELEASE: ${{ steps.version.outputs.prerelease }} run: | - if [ "$PRERELEASE" == "true" ] + # For a PR action (i.e., syncronize / open), the value of github.ref will be refs/pull/1234/merge + # For a push action, it will be either refs/heads/foo_branch_name OR refs/tags/v1234. + # We want to use the base name for pushes of tags or to main, the PR number for PRs, and the branch name for named branches. + if [[ "$PRERELEASE" == "false" || ${{ github.ref }} == refs/heads/main ]] then - echo "::set-output name=btbgithub::-btb-github" - echo "::set-output name=basename::OpenBrush-github" - else - echo "::set-output name=btbgithub::" echo "::set-output name=basename::OpenBrush" + echo "::set-output name=description::" + else + if [[ ${{ github.ref }} == refs/pull/* ]] + then + DESCRIPTION="PR#$(echo ${{ github.ref }} | sed -e 's#refs/pull/##' -e 's#/merge##')" + elif [[ ${{ github.ref }} == refs/heads/* ]] + then + DESCRIPTION="$(echo ${{ github.ref }} | sed -e 's#refs/heads/##')" + else + DESCRIPTION="Unknown" + fi + echo "::set-output name=description::-btb-description ${DESCRIPTION}" + IDENTIFIER=$(echo ${DESCRIPTION} | sed -e 's/[\/#_-]//g') + echo "::set-output name=basename::OpenBrush-${IDENTIFIER}" fi build: name: ${{ matrix.name }} @@ -147,6 +160,27 @@ jobs: steps: + - name: Free extra space + # This takes several minutes, so we only do it where required + if: matrix.targetPlatform == 'Android' + run: | + echo "Initial free space" + df -h + sudo swapoff -a + sudo rm -f /swapfile + docker rmi $(docker image ls -aq) + #echo "Listing 100 largest packages" + #dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -rn | head -n 100 + echo "Removing large packages" + sudo apt-get remove -y '^ghc-8.*' '^dotnet-.*' azure-cli google-cloud-sdk 'adoptopenjdk-.*-hotspot' google-chrome-stable firefox 'php.*' + sudo apt-get autoremove -y + sudo apt-get clean + echo "Removing remaining large directories" + rm -rf /usr/share/dotnet/ + rm -rf "$AGENT_TOOLSDIRECTORY" + echo "Disk space after cleanup" + df -h + - name: Checkout repository uses: actions/checkout@v2 with: @@ -242,7 +276,7 @@ jobs: env: BASENAME: ${{ needs.configuration.outputs.basename}} run: - echo "filename=com.Icosa.$(echo $BASENAME | sed -e 's/-//g').apk" >> $GITHUB_ENV + echo "filename=com.Icosa.$BASENAME.apk" >> $GITHUB_ENV - name: Set build stamp if: ${{ needs.configuration.outputs.stamp }} @@ -293,7 +327,7 @@ jobs: allowDirtyBuild: true # Because of the OVR Update, the build tree might be dirty unityVersion: ${{ env.UNITY_VERSION }} targetPlatform: ${{ matrix.targetPlatform }} - customParameters: -btb-target ${{ matrix.targetPlatform }} -btb-display ${{ matrix.vrsdk }} -btb-out /github/workspace/build/${{ matrix.targetPlatform }}-${{ matrix.vrsdk }}/${{ env.filename }} ${{ needs.configuration.outputs.btbgithub }} ${{ env.stamp }} ${{ matrix.extraoptions }} + customParameters: -btb-target ${{ matrix.targetPlatform }} -btb-display ${{ matrix.vrsdk }} -btb-out /github/workspace/build/${{ matrix.targetPlatform }}-${{ matrix.vrsdk }}/${{ env.filename }} ${{ needs.configuration.outputs.description}} ${{ env.stamp }} ${{ matrix.extraoptions }} versioning: Custom version: ${{ needs.configuration.outputs.version }} buildMethod: BuildTiltBrush.CommandLine @@ -400,9 +434,9 @@ jobs: zip -r OpenBrush_Desktop_Experimental_$VERSION.zip OpenBrush_Desktop_Experimental_$VERSION/ zip -r OpenBrush_Rift_$VERSION.zip OpenBrush_Rift_$VERSION/ zip -r OpenBrush_Rift_Experimental_$VERSION.zip OpenBrush_Rift_Experimental_$VERSION/ - chmod a+x OpenBrush_Linux_$VERSION/OpenBrush || chmod a+x OpenBrush_Linux_$VERSION/OpenBrush-github + chmod a+x OpenBrush_Linux_$VERSION/OpenBrush* tar cvfz OpenBrush_Linux_$VERSION.tgz OpenBrush_Linux_$VERSION/ - chmod a+x OpenBrush_Linux_Experimental_$VERSION/OpenBrush || chmod a+x OpenBrush_Linux_Experimental_$VERSION/OpenBrush-github + chmod a+x OpenBrush_Linux_Experimental_$VERSION/OpenBrush* tar cvfz OpenBrush_Linux_Experimental_$VERSION.tgz OpenBrush_Linux_Experimental_$VERSION/ rm -rf OpenBrush_Desktop_$VERSION rm -rf OpenBrush_Desktop_Experimental_$VERSION @@ -419,3 +453,50 @@ jobs: prerelease: ${{ needs.configuration.outputs.prerelease }} tag_name: ${{ needs.configuration.outputs.version }} files: releases/* + publish_oculus: + name: Publish Oculus Release + needs: [configuration, build] + runs-on: macos-latest # the ovr-platform-util tool is only available for Mac and Windows + if: | + github.event_name == 'push' && + github.repository == 'icosa-gallery/open-brush' && + (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/v')) + + strategy: + fail-fast: false + + steps: + - name: Download Build Artifacts (Windows Rift) + uses: actions/download-artifact@v2 + with: + name: Windows Rift + path: build_windows_rift + - name: Download Build Artifacts (Oculus Quest) + uses: actions/download-artifact@v2 + with: + name: Oculus Quest + path: build_oculus_quest + - name: Publish Oculus Builds + env: + VERSION: ${{ needs.configuration.outputs.version }} + PRERELEASE: ${{ needs.configuration.outputs.prerelease }} + OCULUS_RIFT_APP_ID: ${{ secrets.OCULUS_RIFT_APP_ID }} + OCULUS_RIFT_APP_SECRET: ${{ secrets.OCULUS_RIFT_APP_SECRET }} + OCULUS_QUEST_APP_ID: ${{ secrets.OCULUS_QUEST_APP_ID }} + OCULUS_QUEST_APP_SECRET: ${{ secrets.OCULUS_QUEST_APP_SECRET }} + run: | + mkdir releases + mv build_oculus_quest/*/com.Icosa.OpenBrush*apk releases/OpenBrush_Quest_$VERSION.apk + mv build_windows_rift/StandaloneWindows64-Oculus/ releases/OpenBrush_Rift_$VERSION/ + cd releases + zip -r OpenBrush_Rift_$VERSION.zip OpenBrush_Rift_$VERSION/ + curl -L 'https://www.oculus.com/download_app/?id=1462426033810370' -o ovr-platform-util + chmod 755 ovr-platform-util + if [ "$PRERELEASE" == "false" ] + then + ./ovr-platform-util upload-quest-build --app-id ${OCULUS_QUEST_APP_ID} --app-secret ${OCULUS_QUEST_APP_SECRET} --apk OpenBrush_Quest_$VERSION.apk --channel LIVE + ./ovr-platform-util upload-rift-build --app-id ${OCULUS_RIFT_APP_ID} --app-secret ${OCULUS_RIFT_APP_SECRET} --build-dir OpenBrush_Rift_$VERSION --launch-file OpenBrush.exe --channel LIVE --version $VERSION --firewall_exceptions true --redistributables 822786567843179,1675031999409058,2657209094360789 + else + ./ovr-platform-util upload-quest-build --app-id ${OCULUS_QUEST_APP_ID} --app-secret ${OCULUS_QUEST_APP_SECRET} --apk OpenBrush_Quest_$VERSION.apk --channel Beta + ./ovr-platform-util upload-rift-build --app-id ${OCULUS_RIFT_APP_ID} --app-secret ${OCULUS_RIFT_APP_SECRET} --build-dir OpenBrush_Rift_$VERSION --launch-file OpenBrush.exe --channel BETA --version $VERSION --firewall_exceptions true --redistributables 822786567843179,1675031999409058,2657209094360789 + fi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1da8b2c741..335173d0c3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: rev: "7e343070a0355c86f72bdee226b5e19ffcbac931" # "v5.0.211103" hooks: - id: dotnet-format - exclude: ^Assets/ThirdParty + exclude: ^(Assets/ThirdParty)|(Packages/) args: - --folder - --include diff --git a/Assets/Editor/BrushLister.cs b/Assets/Editor/BrushLister.cs new file mode 100644 index 0000000000..f6f25c16f6 --- /dev/null +++ b/Assets/Editor/BrushLister.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Text; +using TiltBrush; +using UnityEditor; +using UnityEngine; +using Valve.Newtonsoft.Json.Utilities; +using Object = UnityEngine.Object; + +public class BrushLister : MonoBehaviour +{ + private static StringBuilder brushList; + private static List deprecated; + private static TiltBrushManifest brushManifest; + private static TiltBrushManifest brushManifestX; + + [MenuItem("Tilt/Info/Brush Lister")] + static void ListBrushes() + { + brushList = new StringBuilder(); + + Object[] defaultBrushes = Resources.LoadAll("Brushes", typeof(BrushDescriptor)).ToArray(); + var experimentalBrushes = Resources.LoadAll("X/Brushes", typeof(BrushDescriptor)).ToArray(); + + brushManifest = AssetDatabase.LoadAssetAtPath("Assets/Manifest.asset"); + brushManifestX = AssetDatabase.LoadAssetAtPath("Assets/Manifest_Experimental.asset"); + + deprecated = new List(); + + foreach (BrushDescriptor b in defaultBrushes) { if (b.m_Supersedes != null) deprecated.Add(b.m_Supersedes.m_Guid); } + foreach (BrushDescriptor b in experimentalBrushes) { if (b.m_Supersedes != null) deprecated.Add(b.m_Supersedes.m_Guid); } + + foreach (BrushDescriptor brush in defaultBrushes) { AppendValidBrushString(brush, false); } + foreach (BrushDescriptor brush in experimentalBrushes) + { + try { AppendValidBrushString(brush, true); } + catch (Exception UnassignedReferenceException) + { + Debug.Log($"Experimental brush loading error: {UnassignedReferenceException}"); + } + } + + Debug.Log($"{brushList}"); + } + + public static string getBrushRowString(BrushDescriptor brush, bool experimental) + { + // Exclude legacy brushes + if (brush.m_SupersededBy != null) return ""; + var brushScripts = sniffBrushScript(brush); + string prefabName = brush.m_BrushPrefab != null ? brush.m_BrushPrefab.name : ""; + string materialName = brush.Material != null ? brush.Material.name : ""; + string shaderName = brush.Material != null ? brush.Material.shader.name : ""; + string manifest = ""; + if (brushManifest.Brushes.Contains(brush) && brushManifestX.Brushes.Contains(brush)) + { + manifest = "both"; + } + else if (brushManifest.Brushes.Contains(brush)) + { + manifest = "Default"; + } + else if (brushManifestX.Brushes.Contains(brush)) + { + manifest = "Experimental"; + } + return $"{brush.m_Description}\t{brush.m_AudioReactive}\t{prefabName}\t{materialName}\t{shaderName}\t{brushScripts}\t{experimental}\t{brush.m_SupersededBy}\t{manifest}"; + } + + public static string sniffBrushScript(BrushDescriptor brush) + { + GameObject prefab = brush.m_BrushPrefab; + if (prefab == null) return ""; + var componentNames = new List(); + foreach (MonoBehaviour c in prefab.GetComponents()) + { + if (c.GetType() == typeof(MeshFilter) || c.GetType() == typeof(Transform) || c.GetType() == typeof(MeshRenderer)) continue; + componentNames.Add(c.GetType().ToString().Replace("TiltBrush.", "")); + } + return string.Join(",", componentNames); + } + + public static void AppendValidBrushString(BrushDescriptor brush, bool experimental) + { + if (deprecated.Contains(brush.m_Guid)) return; + var rowString = getBrushRowString(brush, experimental); + if (rowString != "") brushList.AppendLine($"{rowString}"); + } + +} \ No newline at end of file diff --git a/Assets/Scripts/OculusMRCCameraUpdate.cs.meta b/Assets/Editor/BrushLister.cs.meta similarity index 83% rename from Assets/Scripts/OculusMRCCameraUpdate.cs.meta rename to Assets/Editor/BrushLister.cs.meta index b5f06a8eaf..ea6b0f08c2 100644 --- a/Assets/Scripts/OculusMRCCameraUpdate.cs.meta +++ b/Assets/Editor/BrushLister.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: f2c4eb51213be4e35967275b8fc154a0 +guid: cd5ec82d38692584cabd6d047e231291 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/Editor/BuildTiltBrush.cs b/Assets/Editor/BuildTiltBrush.cs index 5d639fecbf..2e9b0da284 100644 --- a/Assets/Editor/BuildTiltBrush.cs +++ b/Assets/Editor/BuildTiltBrush.cs @@ -47,7 +47,7 @@ public class TiltBuildOptions public string Location; public string Stamp; public BuildOptions UnityOptions; - public bool Github; + public string Description; } [Serializable()] @@ -90,8 +90,8 @@ private static readonly List> kValidSdkTarget new KeyValuePair(SdkMode.SteamVR, BuildTarget.StandaloneLinux64), new KeyValuePair(SdkMode.SteamVR, BuildTarget.StandaloneOSX), #if OCULUS_SUPPORTED - new KeyValuePair(SdkMode.Oculus, BuildTarget.StandaloneWindows64), - new KeyValuePair(SdkMode.Oculus, BuildTarget.Android), + new KeyValuePair(SdkMode.Oculus, BuildTarget.StandaloneWindows64), + new KeyValuePair(SdkMode.Oculus, BuildTarget.Android), #endif // OCULUS_SUPPORTED new KeyValuePair(SdkMode.Gvr, BuildTarget.Android), }; @@ -156,7 +156,7 @@ public static SdkMode GuiSelectedSdk EditorPrefs.SetString(kMenuSdkPref, value.ToString()); Menu.SetChecked(kMenuSdkMonoscopic, false); #if OCULUS_SUPPORTED - Menu.SetChecked(kMenuSdkOculus, false); + Menu.SetChecked(kMenuSdkOculus, false); #endif // OCULUS_SUPPORTED Menu.SetChecked(kMenuSdkSteamVr, false); Menu.SetChecked(kMenuSdkGoogleVr, false); @@ -168,7 +168,7 @@ public static SdkMode GuiSelectedSdk break; case SdkMode.Oculus: #if OCULUS_SUPPORTED - Menu.SetChecked(kMenuSdkOculus, true); + Menu.SetChecked(kMenuSdkOculus, true); #endif // OCULUS_SUPPORTED break; case SdkMode.SteamVR: @@ -304,12 +304,12 @@ public static TiltBuildOptions GetGuiOptions() UnityOptions = GuiDevelopment ? (BuildOptions.AllowDebugging | BuildOptions.Development) : BuildOptions.None, - Github = false, + Description = "(unity editor)", }; } // Menu items - [MenuItem("Tilt/Build/Do Build...", false, 2)] + [MenuItem("Tilt/Build/Do Build... #&b", false, 2)] public static void MenuItem_Build() { TiltBuildOptions tiltOptions = GetGuiOptions(); @@ -415,8 +415,8 @@ static void MenuItem_Sdk_Oculus() static bool MenuItem_Sdk_Oculus_Validate() { #if OCULUS_SUPPORTED - Menu.SetChecked(kMenuSdkOculus, GuiSelectedSdk == SdkMode.Oculus); - return true; + Menu.SetChecked(kMenuSdkOculus, GuiSelectedSdk == SdkMode.Oculus); + return true; #else return false; #endif @@ -707,11 +707,11 @@ static void CommandLine() #if OCULUS_SUPPORTED - // Call these once to create the files. Normally (i.e., in a GUI build), they're created with - // [UnityEditor.InitializeOnLoad], but in case they're missing, like in CI, make sure they're - // there! - OVRProjectConfig defaultOculusProjectConfig = OVRProjectConfig.GetProjectConfig(); - string useless_app_id = Assets.Oculus.VR.Editor.OVRPlatformToolSettings.AppID; + // Call these once to create the files. Normally (i.e., in a GUI build), they're created with + // [UnityEditor.InitializeOnLoad], but in case they're missing, like in CI, make sure they're + // there! + OVRProjectConfig defaultOculusProjectConfig = OVRProjectConfig.GetProjectConfig(); + string useless_app_id = Assets.Oculus.VR.Editor.OVRPlatformToolSettings.AppID; #endif { @@ -742,9 +742,9 @@ static void CommandLine() { tiltOptions.Experimental = true; } - else if (args[i] == "-btb-github") + else if (args[i] == "-btb-description") { - tiltOptions.Github = true; + tiltOptions.Description = args[++i]; } else if (args[i] == "-btb-il2cpp") { @@ -937,7 +937,7 @@ class TempSetAppNames : IDisposable private string m_name; private string m_company; private bool m_isAndroid; - public TempSetAppNames(bool isAndroid, bool isGithub) + public TempSetAppNames(bool isAndroid, string Description) { m_isAndroid = isAndroid; m_identifier = PlayerSettings.GetApplicationIdentifier(BuildTargetGroup.Android); @@ -945,10 +945,10 @@ public TempSetAppNames(bool isAndroid, bool isGithub) m_company = PlayerSettings.companyName; string new_name = App.kAppDisplayName; string new_identifier = App.kGuiBuildAndroidApplicationIdentifier; - if (isGithub) + if (!String.IsNullOrEmpty(Description)) { - new_name += " (Github)"; - new_identifier += "-github"; + new_name += " (" + Description + ")"; + new_identifier += Description.Replace("_", "").Replace("#", "").Replace("-", ""); } if (m_isAndroid) { @@ -1218,6 +1218,9 @@ public static void DoBuild(TiltBuildOptions tiltOptions) string stamp = tiltOptions.Stamp; SdkMode vrSdk = tiltOptions.VrSdk; BuildOptions options = tiltOptions.UnityOptions; + // Add your new scenes in this List for your app. + // During the build process the Scene List in the Build Settings is ignored. + // Only the following scenes are included in the build. string[] scenes = { "Assets/Scenes/Loading.unity", "Assets/Scenes/Main.unity" }; Note("BuildTiltBrush: Start target:{0} mode:{1} exp:{2} profile:{3} options:{4}", target, vrSdk, tiltOptions.Experimental, tiltOptions.AutoProfile, @@ -1242,7 +1245,7 @@ public static void DoBuild(TiltBuildOptions tiltOptions) using (var unused4 = new TempHookUpSingletons()) using (var unused5 = new TempSetScriptingBackend(target, tiltOptions.Il2Cpp)) using (var unused6 = new TempSetBundleVersion(App.Config.m_VersionNumber, stamp)) - using (var unused10 = new TempSetAppNames(target == BuildTarget.Android, tiltOptions.Github)) + using (var unused10 = new TempSetAppNames(target == BuildTarget.Android, tiltOptions.Description)) using (var unused7 = new RestoreVrSdks()) using (var unused9 = new RestoreFileContents( Path.Combine(Path.GetDirectoryName(Application.dataPath), @@ -1498,6 +1501,11 @@ public static void OnPostProcessBuild(BuildTarget target, string path) { FileUtil.DeleteFileOrDirectory(openvrDll); } + string openvrDll64 = Path.Combine(Path.Combine(Path.Combine(dataDir, "Plugins"), "x86_64"), "openvr_api.dll"); + if (File.Exists(openvrDll64)) + { + FileUtil.DeleteFileOrDirectory(openvrDll64); + } } // b/120917711 @@ -1519,19 +1527,19 @@ public static void OnPostProcessBuild(BuildTarget target, string path) // TODO: is it possible to embed loose files on iOS? looseFilesDest = null; #if UNITY_EDITOR_OSX && UNITY_IPHONE - string pbxPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj"; + string pbxPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj"; - PBXProject project = new PBXProject(); - project.ReadFromString(File.ReadAllText(pbxPath)); - string pbxTarget = project.TargetGuidByName("Unity-iPhone"); + PBXProject project = new PBXProject(); + project.ReadFromString(File.ReadAllText(pbxPath)); + string pbxTarget = project.TargetGuidByName("Unity-iPhone"); - // additional framework libs - project.AddFrameworkToProject(pbxTarget, "Security.framework", false); - project.AddFrameworkToProject(pbxTarget, "CoreData.framework", false); - // disable bitcode due to issue with Cardboard plugin (b/27129333) - project.SetBuildProperty(pbxTarget, "ENABLE_BITCODE", "false"); + // additional framework libs + project.AddFrameworkToProject(pbxTarget, "Security.framework", false); + project.AddFrameworkToProject(pbxTarget, "CoreData.framework", false); + // disable bitcode due to issue with Cardboard plugin (b/27129333) + project.SetBuildProperty(pbxTarget, "ENABLE_BITCODE", "false"); - File.WriteAllText(pbxPath, project.WriteToString()); + File.WriteAllText(pbxPath, project.WriteToString()); #else Die(5, "OS X required for building iOS target."); #endif @@ -1748,7 +1756,7 @@ public static void DoBackgroundBuild(TiltBuildOptions tiltOptions, bool interact string logFile = Path.Combine(rootCopyDir.FullName, "BackgroundBuild.log"); FileUtil.DeleteFileOrDirectory(logFile); #if UNITY_EDITOR_OSX - args.AppendFormat("--args "); + args.AppendFormat("--args "); #endif args.AppendFormat("-logFile {0} ", logFile); if (!interactive) { args.Append("-batchmode "); } @@ -1774,8 +1782,8 @@ public static void DoBackgroundBuild(TiltBuildOptions tiltOptions, bool interact StringBuilder unityPath = new StringBuilder(); unityPath.AppendFormat(EditorApplication.applicationPath); #if UNITY_EDITOR_OSX - // We want to run the inner Unity executable, not the GUI wrapper - unityPath.AppendFormat("/Contents/MacOS/Unity"); + // We want to run the inner Unity executable, not the GUI wrapper + unityPath.AppendFormat("/Contents/MacOS/Unity"); #endif process.StartInfo = new System.Diagnostics.ProcessStartInfo(unityPath.ToString(), args.ToString()); DetectBackgroundProcessExit(process); diff --git a/Assets/Editor/PanelLister.cs b/Assets/Editor/PanelLister.cs new file mode 100644 index 0000000000..f583b1df68 --- /dev/null +++ b/Assets/Editor/PanelLister.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Text; +using TiltBrush; +using UnityEditor; +using UnityEngine; +using Valve.Newtonsoft.Json.Utilities; +using Object = UnityEngine.Object; + +public class PanelLister : MonoBehaviour +{ + + [MenuItem("Tilt/Info/Panel Lister")] + static void ListPanels() + { + StringBuilder panelList = new StringBuilder(); + PanelMapKey[] m_PanelMap; + var pm = FindObjectOfType(); + FieldInfo privateField = pm.GetType().GetField("m_PanelMap", BindingFlags.NonPublic | BindingFlags.Instance); + m_PanelMap = (PanelMapKey[])privateField.GetValue(pm); + panelList.AppendLine($"m_Advanced\tm_Basic\tm_ModeGvr\tm_ModeMono\tm_ModeQuest\tm_ModeVr\tm_PanelPrefab\tm_ModeVrExperimental"); + foreach (var panel in m_PanelMap) + { + panelList.AppendLine($"{panel.m_Advanced}\t{panel.m_Basic}\t{panel.m_ModeGvr}\t{panel.m_ModeMono}\t{panel.m_ModeQuest}\t{panel.m_ModeVr}\t{panel.m_PanelPrefab}\t{panel.m_ModeVrExperimental}"); + } + + + Debug.Log($"{panelList}"); + } + + [MenuItem("Tilt/Info/Popup Lister")] + static void ListPopups() + { + StringBuilder popupList = new StringBuilder(); + PanelMapKey[] m_PanelMap; + var pm = FindObjectOfType(); + FieldInfo privateField = pm.GetType().GetField("m_PanelMap", BindingFlags.NonPublic | BindingFlags.Instance); + m_PanelMap = (PanelMapKey[])privateField.GetValue(pm); + foreach (var panel in m_PanelMap) + { + if (panel.m_PanelPrefab == null) continue; + var pp = panel.m_PanelPrefab.GetComponent(); + if (pp == null) continue; + popupList.AppendLine($"{pp.name}\t"); + PopupMapKey[] m_PanelPopUpMap; + FieldInfo privateField2 = pp.GetType().GetField("m_PanelPopUpMap", BindingFlags.NonPublic | BindingFlags.Instance); + if (privateField2 == null) continue; + m_PanelPopUpMap = (PopupMapKey[])privateField2.GetValue(pp); + foreach (var popup in m_PanelPopUpMap) + { + popupList.AppendLine($"\t{popup.m_Command}\t{popup.m_PopUpPrefab.name}"); + } + } + + Debug.Log($"{popupList}"); + } + +} \ No newline at end of file diff --git a/Assets/Editor/PanelLister.cs.meta b/Assets/Editor/PanelLister.cs.meta new file mode 100644 index 0000000000..277e7b4284 --- /dev/null +++ b/Assets/Editor/PanelLister.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4f88e4f0b11a5204c9745e8b3be97ca4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Panels/ColorPickerPanel.prefab b/Assets/Prefabs/Panels/ColorPickerPanel.prefab index 9629006e6e..e3484a7c2d 100644 --- a/Assets/Prefabs/Panels/ColorPickerPanel.prefab +++ b/Assets/Prefabs/Panels/ColorPickerPanel.prefab @@ -32,6 +32,8 @@ Transform: - {fileID: 4000013204761718} - {fileID: 4567308084348702} - {fileID: 4000010635123818} + - {fileID: 5035783189062963130} + - {fileID: 5829039265654114525} - {fileID: 4438075100088248} m_Father: {fileID: 4000011237366108} m_RootOrder: 2 @@ -178,7 +180,9 @@ MonoBehaviour: m_Border: {fileID: 23000010616956562} m_MeshCollider: {fileID: 65000011921694012} m_ParticleBounds: {x: 1.75, y: 1.75, z: 0} - m_PanelPopUpMap: [] + m_PanelPopUpMap: + - m_PopUpPrefab: {fileID: 197348, guid: d239309283424304dbea4303c5b675ba, type: 3} + m_Command: 7000 m_PanelDescription: Color Picker m_PanelDescriptionPrefab: {fileID: 160918, guid: 3491f4f01ba6cac47b1633f36d7c6c84, type: 3} @@ -318,6 +322,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -329,6 +334,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -410,6 +416,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -421,6 +428,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -472,6 +480,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.05 m_HoverScale: 1.1 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ShowRotation: 1 m_RotationSpeedMultiplier: 14.3 @@ -570,6 +579,7 @@ MeshRenderer: m_MotionVectors: 0 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -581,6 +591,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -656,6 +667,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -667,6 +679,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -757,6 +770,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -768,6 +782,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -821,7 +836,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1058598581371676} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.3237505, y: 0, z: 0} + m_LocalPosition: {x: -0.30000016, y: -0.124999754, z: 0.000000092433766} m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} m_Children: [] m_Father: {fileID: 4438075100088248} @@ -849,6 +864,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -860,6 +876,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -911,6 +928,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.04 m_HoverScale: 1.35 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} m_Trash: 0 @@ -960,6 +978,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -971,6 +990,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1042,6 +1062,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1053,6 +1074,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1127,7 +1149,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1260967163303688} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.4862504, y: 0, z: 0} + m_LocalPosition: {x: -0.15000015, y: -0.124999754, z: -0.000000008381903} m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} m_Children: [] m_Father: {fileID: 4438075100088248} @@ -1155,6 +1177,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1166,6 +1189,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1217,6 +1241,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.04 m_HoverScale: 1.35 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} m_Trash: 0 @@ -1248,7 +1273,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1389479448930036} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -0.32375047, y: 0, z: 0} + m_LocalPosition: {x: -0.30000025, y: 0.073999114, z: 0.00000014714897} m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} m_Children: [] m_Father: {fileID: 4438075100088248} @@ -1276,6 +1301,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1287,6 +1313,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1338,6 +1365,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.04 m_HoverScale: 1.35 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} m_Trash: 0 @@ -1369,7 +1397,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1438628857629690} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.1612502, y: 0, z: 0} + m_LocalPosition: {x: -0.45000014, y: -0.124999754, z: 0.000000092433766} m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} m_Children: [] m_Father: {fileID: 4438075100088248} @@ -1397,6 +1425,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1408,6 +1437,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1459,6 +1489,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.04 m_HoverScale: 1.35 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} m_Trash: 0 @@ -1490,7 +1521,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1496081396447916} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: -0.00000022910535, y: 0.073999114, z: 0.00000014714897} m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} m_Children: [] m_Father: {fileID: 4438075100088248} @@ -1518,6 +1549,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1529,6 +1561,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1580,6 +1613,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.04 m_HoverScale: 1.35 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} m_Trash: 0 @@ -1610,7 +1644,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1565688636885708} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.238, y: -0.642, z: 0.05} + m_LocalPosition: {x: -0.238, y: -0.596, z: 0.05} m_LocalScale: {x: 1, y: 1, z: 1} m_Children: - {fileID: 4277394945041956} @@ -1620,9 +1654,10 @@ Transform: - {fileID: 4365206483374124} - {fileID: 4096361563012652} - {fileID: 4970236307616174} + - {fileID: 5600472376624797025} - {fileID: 4178990938195600} m_Father: {fileID: 4000012065142580} - m_RootOrder: 5 + m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &114262722981440484 MonoBehaviour: @@ -1650,6 +1685,7 @@ MonoBehaviour: - {fileID: 114569216444465652} - {fileID: 114351879027055406} - {fileID: 114415058837065838} + - {fileID: 1898800821892531385} m_TrashButton: {fileID: 114282612100180912} m_TrashButtonPlacementOffset: {x: 0, y: -0.1, z: 0} --- !u!65 &65730247382608146 @@ -1732,6 +1768,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1743,6 +1780,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1796,7 +1834,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1724890649733238} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -0.48625037, y: 0, z: 0} + m_LocalPosition: {x: -0.45000023, y: 0.073999114, z: 0.00000014714897} m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} m_Children: [] m_Father: {fileID: 4438075100088248} @@ -1824,6 +1862,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1835,6 +1874,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1886,6 +1926,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.04 m_HoverScale: 1.35 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} m_Trash: 0 @@ -1917,7 +1958,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1729974805708252} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -0.16125016, y: 0, z: 0} + m_LocalPosition: {x: -0.15, y: 0.074, z: -0} m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} m_Children: [] m_Father: {fileID: 4438075100088248} @@ -1945,6 +1986,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1956,6 +1998,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2007,6 +2050,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.04 m_HoverScale: 1.35 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} m_Trash: 0 @@ -2038,11 +2082,11 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1750809462802766} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.4862504, y: -0.11824989, z: -0.00124979} + m_LocalPosition: {x: 0.15, y: 0, z: -0.001} m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} m_Children: [] m_Father: {fileID: 4438075100088248} - m_RootOrder: 7 + m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &33096607024201348 MeshFilter: @@ -2066,6 +2110,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2077,6 +2122,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2115,6 +2161,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.04 m_HoverScale: 1.3 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} m_Trash: 1 @@ -2186,6 +2233,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2197,6 +2245,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2277,6 +2326,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2288,6 +2338,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2339,8 +2390,8 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1979369907720730} 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_LocalPosition: {x: 0, y: 0.1, z: -0} + m_LocalScale: {x: 0.95, y: 0.95, z: 0.95} m_Children: - {fileID: 4456978593412232} - {fileID: 4815117117886146} @@ -2384,3 +2435,337 @@ BoxCollider: serializedVersion: 2 m_Size: {x: 1.6, y: 1.3, z: 0.01} m_Center: {x: 0, y: 0.15, z: 0} +--- !u!1 &1465978937589314202 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5600472376624797025} + - component: {fileID: 7076992563822189059} + - component: {fileID: 5728572260582071885} + - component: {fileID: 8106456083465655573} + - component: {fileID: 1898800821892531385} + m_Layer: 16 + m_Name: Palette8 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5600472376624797025 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1465978937589314202} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: -0.125, z: 0} + m_LocalScale: {x: 0.1125, y: 0.11250001, z: 0.1125} + m_Children: [] + m_Father: {fileID: 4438075100088248} + m_RootOrder: 7 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &7076992563822189059 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1465978937589314202} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &5728572260582071885 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1465978937589314202} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 0c298b4a41e7c5b4daf56d8987a83788, 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: 0 + 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 +--- !u!65 &8106456083465655573 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1465978937589314202} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 0.01} + m_Center: {x: 0, y: 0, z: 0} +--- !u!114 &1898800821892531385 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1465978937589314202} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: eab8685dfd387584198a5374f9755351, type: 3} + m_Name: + m_EditorClassIdentifier: + m_DescriptionType: -1 + m_DescriptionYOffset: 0 + m_DescriptionText: + m_DescriptionTextExtra: + m_DescriptionActivateSpeed: 12 + m_DescriptionZScale: 1 + m_ButtonTexture: {fileID: 2800000, guid: 4c7ba8aa81fca19479a7011750724531, type: 3} + m_AtlasTexture: 0 + m_ToggleButton: 0 + m_LongPressReleaseButton: 0 + m_ButtonHasPressedAudio: 1 + m_ZAdjustHover: -0.02 + m_ZAdjustClick: 0.04 + m_HoverScale: 1.35 + m_HoverBoxColliderGrow: 0.2 + m_AddOverlay: 0 + m_ColorTexture: {fileID: 2800000, guid: d21c4cae08e56704b98251732eca90cb, type: 3} + m_Trash: 0 +--- !u!1001 &3173646394997737499 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 4000012065142580} + m_Modifications: + - target: {fileID: 7525759816367303735, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_Command + value: 7000 + objectReference: {fileID: 0} + - target: {fileID: 7525759816367303735, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_PopupText + value: Color Jitter + objectReference: {fileID: 0} + - target: {fileID: 7525759816367303735, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_ButtonTexture + value: + objectReference: {fileID: 2800000, guid: 9b82f38d1c06a854faadd9c2ea76b48b, type: 3} + - target: {fileID: 7525759816367303735, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_DescriptionText + value: Color Jitter + objectReference: {fileID: 0} + - target: {fileID: 7630606763700834929, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_Name + value: OpenColourOptionsPopup + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_RootOrder + value: 5 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalScale.x + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalScale.y + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalScale.z + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalPosition.x + value: 0.34999996 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalPosition.y + value: -0.64800024 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalPosition.z + value: 0.050000206 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 71757eb1eb6bebe489a852e972821df3, type: 3} +--- !u!4 &5035783189062963130 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 7631838532712089505, guid: 71757eb1eb6bebe489a852e972821df3, + type: 3} + m_PrefabInstance: {fileID: 3173646394997737499} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &4111035363666907004 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 4000012065142580} + m_Modifications: + - target: {fileID: 7630606763700834929, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_Name + value: ActionButton + objectReference: {fileID: 0} + - target: {fileID: 7630606763700834929, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_RootOrder + value: 6 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalScale.x + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalScale.y + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalScale.z + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalPosition.x + value: 0.35 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalPosition.y + value: -0.648 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalPosition.z + value: 0.05 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7879899076693153277, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + propertyPath: m_ButtonTexture + value: + objectReference: {fileID: 2800000, guid: 9b82f38d1c06a854faadd9c2ea76b48b, type: 3} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 0963942396a615f4fb1b390436e881b8, type: 3} +--- !u!4 &5829039265654114525 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 7631838532712089505, guid: 0963942396a615f4fb1b390436e881b8, + type: 3} + m_PrefabInstance: {fileID: 4111035363666907004} + m_PrefabAsset: {fileID: 0} diff --git a/Assets/Prefabs/Panels/GuideToolsPanel.prefab b/Assets/Prefabs/Panels/GuideToolsPanel.prefab index d405d14d26..00d78aca9f 100644 --- a/Assets/Prefabs/Panels/GuideToolsPanel.prefab +++ b/Assets/Prefabs/Panels/GuideToolsPanel.prefab @@ -30,12 +30,14 @@ Transform: - {fileID: 406342} - {fileID: 432918} - {fileID: 4000013828497108} + - {fileID: 1740165316512057755} - {fileID: 4000010889664432} - {fileID: 4000013338876414} - {fileID: 4000012518913856} - {fileID: 4000011754324068} - {fileID: 4000010950163592} - {fileID: 4000012016487442} + - {fileID: 1316736359741259463} m_Father: {fileID: 464110} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -221,7 +223,7 @@ BoxCollider: m_IsTrigger: 0 m_Enabled: 1 serializedVersion: 2 - m_Size: {x: 1.4, y: 1.1, z: 0.02} + m_Size: {x: 1.4, y: 1.5, z: 0.02} m_Center: {x: 0, y: 0, z: 0} --- !u!1 &178704 GameObject: @@ -261,7 +263,7 @@ MeshFilter: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 178704} - m_Mesh: {fileID: 4300000, guid: f74ab64bbd1dd3a4e8fc536254e3ac66, type: 3} + m_Mesh: {fileID: 4300000, guid: bfb0baf1a986fe5479556d1776afff52, type: 3} --- !u!1 &195514 GameObject: m_ObjectHideFlags: 0 @@ -304,7 +306,7 @@ BoxCollider: m_IsTrigger: 0 m_Enabled: 1 serializedVersion: 2 - m_Size: {x: 1.9, y: 1.6, z: 0.5} + m_Size: {x: 1.9, y: 2.4, z: 0.5} m_Center: {x: 0, y: 0, z: 0} --- !u!1 &1000010407002122 GameObject: @@ -334,11 +336,11 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1000010407002122} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -0.416, y: 0.21000004, z: 0.05} + m_LocalPosition: {x: 0, y: 0.39499998, z: 0.05} m_LocalScale: {x: 0.35, y: 0.35, z: 0.35} m_Children: [] m_Father: {fileID: 417900} - m_RootOrder: 3 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &33000010974736674 MeshFilter: @@ -362,6 +364,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -373,6 +376,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -424,6 +428,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.05 m_HoverScale: 1.1 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_Type: 2 --- !u!1 &1000011539968446 @@ -454,11 +459,11 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1000011539968446} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0.21000004, z: 0.05} + m_LocalPosition: {x: 0.416, y: 0.39499998, z: 0.05} m_LocalScale: {x: 0.35, y: 0.35, z: 0.35} m_Children: [] m_Father: {fileID: 417900} - m_RootOrder: 4 + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &33000010139712078 MeshFilter: @@ -482,6 +487,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -493,6 +499,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -544,6 +551,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.05 m_HoverScale: 1.1 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_Type: 1 --- !u!1 &1000011773655602 @@ -577,7 +585,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 417900} - m_RootOrder: 8 + m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &33000010254827896 MeshFilter: @@ -586,7 +594,7 @@ MeshFilter: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1000011773655602} - m_Mesh: {fileID: 4300000, guid: 70d5ab47bcc3aa0439e20bd40350c05a, type: 3} + m_Mesh: {fileID: 4300000, guid: abfb1ed71d7809e4ca432a0cb90d676b, type: 3} --- !u!23 &23000014277342512 MeshRenderer: m_ObjectHideFlags: 0 @@ -601,6 +609,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -612,6 +621,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -693,6 +703,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -704,6 +715,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -755,6 +767,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.05 m_HoverScale: 1.1 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_Command: 28 m_CommandParam: -1 @@ -821,6 +834,7 @@ MeshRenderer: m_MotionVectors: 0 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -832,6 +846,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -872,11 +887,11 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1000012314343422} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.416, y: 0, z: 0.05} + m_LocalPosition: {x: 0.416, y: -0.02500005, z: 0.05} m_LocalScale: {x: 0.35, y: 0.35, z: 0.35} m_Children: [] m_Father: {fileID: 417900} - m_RootOrder: 7 + m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &33000013658333808 MeshFilter: @@ -900,6 +915,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -911,6 +927,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -962,6 +979,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.05 m_HoverScale: 1.1 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_Command: 38 m_CommandParam: -1 @@ -1002,11 +1020,11 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1000013220144578} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -0.416, y: -0.21000004, z: 0.05} + m_LocalPosition: {x: -0.416, y: -0.025000095, z: 0.05} m_LocalScale: {x: 0.35, y: 0.35, z: 0.35} m_Children: [] m_Father: {fileID: 417900} - m_RootOrder: 6 + m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &33000013915695756 MeshFilter: @@ -1030,6 +1048,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1041,6 +1060,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1092,6 +1112,7 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.05 m_HoverScale: 1.1 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_Type: 8 --- !u!1 &1000013984474622 @@ -1108,7 +1129,7 @@ GameObject: - component: {fileID: 65000012076310584} - component: {fileID: 114000011264458296} m_Layer: 16 - m_Name: PanelButton_GuideStencil + m_Name: PanelButton_GuideCapsule m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -1122,11 +1143,11 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1000013984474622} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -0.21, z: 0.05} + m_LocalPosition: {x: 0, y: -0.02500005, z: 0.05} m_LocalScale: {x: 0.35, y: 0.35, z: 0.35} m_Children: [] m_Father: {fileID: 417900} - m_RootOrder: 5 + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &33000010068933098 MeshFilter: @@ -1150,6 +1171,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1161,6 +1183,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1212,5 +1235,749 @@ MonoBehaviour: m_ZAdjustHover: -0.02 m_ZAdjustClick: 0.05 m_HoverScale: 1.1 + m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_Type: 3 +--- !u!1 &1550163199324860026 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3803312389844076658} + - component: {fileID: 3547328506435963864} + - component: {fileID: 1379298806110779130} + - component: {fileID: 3866069622247236081} + m_Layer: 16 + m_Name: MinIcon + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3803312389844076658 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1550163199324860026} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.5, y: 0, z: 0.05} + m_LocalScale: {x: 2, y: 2, z: 2} + m_Children: [] + m_Father: {fileID: 1316736359741259463} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3547328506435963864 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1550163199324860026} + m_Mesh: {fileID: 4300000, guid: 260cc07aabcea6d41a633a35c1103a6c, type: 3} +--- !u!23 &1379298806110779130 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1550163199324860026} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 40d29de2bdc11f04dbfa25059165916e, 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: 0 + 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 +--- !u!114 &3866069622247236081 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1550163199324860026} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0fda994627665a24b888af25f8c55ce4, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Icon: {fileID: 2800000, guid: 8e733c6b71b90e94c8b99c3c58de9b65, type: 3} +--- !u!1 &2367366186935301193 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7073141969335549376} + - component: {fileID: 1445699866193492073} + - component: {fileID: 4940418778313840920} + m_Layer: 16 + m_Name: Cap + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7073141969335549376 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2367366186935301193} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.3, y: -0.007, z: 0.05} + m_LocalScale: {x: 0.11, y: 0.11, z: 0.1} + m_Children: [] + m_Father: {fileID: 1316736359741259463} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &1445699866193492073 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2367366186935301193} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &4940418778313840920 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2367366186935301193} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: ca448c25e886c544796b10b98d8aa9cc, 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: 0 + 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 +--- !u!1 &3049231379317704024 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5102288384282107253} + - component: {fileID: 4364491759810234094} + - component: {fileID: 1848207878205953585} + m_Layer: 16 + m_Name: Mesh + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5102288384282107253 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3049231379317704024} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: -0.007, z: 0.05} + m_LocalScale: {x: 0.5, y: 0.11, z: 1} + m_Children: [] + m_Father: {fileID: 1316736359741259463} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &4364491759810234094 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3049231379317704024} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: db2d9e5107064e64ea8ce921e6f24458, 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: 0 + 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 +--- !u!33 &1848207878205953585 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3049231379317704024} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &4099382765129129040 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1740165316512057755} + - component: {fileID: 1304738839580606656} + - component: {fileID: 8912230613168107705} + - component: {fileID: 5045411833944777428} + - component: {fileID: 4909323277910679879} + m_Layer: 16 + m_Name: PanelButton_GuidePlane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1740165316512057755 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4099382765129129040} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.416, y: 0.395, z: 0.05} + m_LocalScale: {x: 0.35, y: 0.35, z: 0.35} + m_Children: [] + m_Father: {fileID: 417900} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &1304738839580606656 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4099382765129129040} + m_Mesh: {fileID: 4300000, guid: 5501f437160666942ae970f3648fbeb8, type: 3} +--- !u!23 &8912230613168107705 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4099382765129129040} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 40d29de2bdc11f04dbfa25059165916e, 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: 0 + 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 +--- !u!65 &5045411833944777428 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4099382765129129040} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 0.1} + m_Center: {x: -0.000000074505806, y: 0.000000022351742, z: 0.01} +--- !u!114 &4909323277910679879 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4099382765129129040} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 483352d8a6ca1b64999b70a7a617fc54, type: 3} + m_Name: + m_EditorClassIdentifier: + m_DescriptionType: 0 + m_DescriptionYOffset: 0 + m_DescriptionText: Cube Guide + m_DescriptionTextExtra: + m_DescriptionActivateSpeed: 12 + m_DescriptionZScale: 1 + m_ButtonTexture: {fileID: 2800000, guid: d5133db99d7b8724b9a844f44753ee83, type: 3} + m_AtlasTexture: 1 + m_ToggleButton: 0 + m_LongPressReleaseButton: 0 + m_ButtonHasPressedAudio: 1 + m_ZAdjustHover: -0.02 + m_ZAdjustClick: 0.05 + m_HoverScale: 1.1 + m_HoverBoxColliderGrow: 0.2 + m_AddOverlay: 0 + m_Type: 0 +--- !u!1 &4569872940874874763 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3485900823514689920} + - component: {fileID: 1676445595468297063} + - component: {fileID: 4050451989915629480} + - component: {fileID: 7964947906979514262} + m_Layer: 16 + m_Name: MaxIcon + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3485900823514689920 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4569872940874874763} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.5, y: 0, z: 0.05} + m_LocalScale: {x: 2, y: 2, z: 2} + m_Children: [] + m_Father: {fileID: 1316736359741259463} + m_RootOrder: 6 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &1676445595468297063 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4569872940874874763} + m_Mesh: {fileID: 4300000, guid: 260cc07aabcea6d41a633a35c1103a6c, type: 3} +--- !u!23 &4050451989915629480 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4569872940874874763} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 40d29de2bdc11f04dbfa25059165916e, 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: 0 + 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 +--- !u!114 &7964947906979514262 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4569872940874874763} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0fda994627665a24b888af25f8c55ce4, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Icon: {fileID: 2800000, guid: a68fb700064025245af41e5c5c784e6c, type: 3} +--- !u!1 &5870803456983517396 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1123594689280486007} + - component: {fileID: 3257035217372399836} + - component: {fileID: 2393163081835804903} + - component: {fileID: 135177317302905413} + m_Layer: 16 + m_Name: SliderPosition + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1123594689280486007 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5870803456983517396} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.25, y: 0, z: 0.05} + m_LocalScale: {x: 0.03, y: 0.08, z: 0.02} + m_Children: [] + m_Father: {fileID: 1316736359741259463} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3257035217372399836 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5870803456983517396} + m_Mesh: {fileID: 4300000, guid: 5ef960ddf11c1fd4983638f56f6a8be0, type: 3} +--- !u!23 &2393163081835804903 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5870803456983517396} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 3e92ccbfed650604686991e69902e663, 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: 0 + 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 +--- !u!114 &135177317302905413 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5870803456983517396} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aaefde5afe80784e908d27fcb05a101, type: 3} + m_Name: + m_EditorClassIdentifier: + m_OffsetOverride: -1 +--- !u!1 &6586607949392129858 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6543848254959986636} + - component: {fileID: 3867175151653350535} + - component: {fileID: 8597531002982106244} + m_Layer: 16 + m_Name: Cap + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6543848254959986636 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6586607949392129858} + m_LocalRotation: {x: 0, y: 0, z: 1, w: 0} + m_LocalPosition: {x: 0.3, y: -0.007, z: 0.05} + m_LocalScale: {x: 0.11, y: 0.11, z: 0.1} + m_Children: [] + m_Father: {fileID: 1316736359741259463} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3867175151653350535 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6586607949392129858} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &8597531002982106244 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6586607949392129858} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: ca448c25e886c544796b10b98d8aa9cc, 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: 0 + 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 +--- !u!1 &6700719502845980796 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 805220852689684092} + - component: {fileID: 6621977532987318059} + m_Layer: 16 + m_Name: Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &805220852689684092 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6700719502845980796} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.6, y: 0.109721534, z: 1} + m_Children: [] + m_Father: {fileID: 1316736359741259463} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!65 &6621977532987318059 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6700719502845980796} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1.181115, y: 0.96581644, z: 0.1} + m_Center: {x: -0.0031256676, y: -0.05127492, z: 0} +--- !u!1 &7062107329111215505 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1316736359741259463} + - component: {fileID: 5111839456371936364} + m_Layer: 16 + m_Name: PointerSnapSlider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1316736359741259463 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7062107329111215505} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: -0.443, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 805220852689684092} + - {fileID: 5102288384282107253} + - {fileID: 1123594689280486007} + - {fileID: 6543848254959986636} + - {fileID: 7073141969335549376} + - {fileID: 3803312389844076658} + - {fileID: 3485900823514689920} + m_Father: {fileID: 417900} + m_RootOrder: 10 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &5111839456371936364 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7062107329111215505} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 83564bfff5bdd8a4eb20117ce11dff66, type: 3} + m_Name: + m_EditorClassIdentifier: + m_DescriptionType: 1 + m_DescriptionYOffset: 0 + m_DescriptionText: Snap Distance + m_DescriptionTextExtra: + m_DescriptionActivateSpeed: 12 + m_DescriptionZScale: 25 + m_Nob: {fileID: 5870803456983517396} + m_Mesh: {fileID: 4364491759810234094} + m_MinAttractDistance: 0.25 + m_MaxAttractDistance: 2 diff --git a/Assets/Prefabs/Panels/PolyPanel.prefab b/Assets/Prefabs/Panels/PolyPanel.prefab index 5102ab40ca..400a85f8a7 100644 --- a/Assets/Prefabs/Panels/PolyPanel.prefab +++ b/Assets/Prefabs/Panels/PolyPanel.prefab @@ -56,6 +56,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -67,6 +68,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -543,6 +545,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -554,6 +557,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -668,6 +672,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -679,6 +684,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -793,6 +799,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -804,6 +811,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -870,6 +878,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -881,6 +890,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -977,6 +987,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -988,6 +999,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1054,6 +1066,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1065,6 +1078,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1123,6 +1137,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1134,6 +1149,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1219,9 +1235,9 @@ MeshCollider: m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 - serializedVersion: 3 + serializedVersion: 4 m_Convex: 0 - m_CookingOptions: 14 + m_CookingOptions: 30 m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} --- !u!23 &23000013888846672 MeshRenderer: @@ -1237,6 +1253,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1248,6 +1265,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1307,6 +1325,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1318,6 +1337,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1411,9 +1431,9 @@ MeshCollider: m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 - serializedVersion: 3 + serializedVersion: 4 m_Convex: 0 - m_CookingOptions: 14 + m_CookingOptions: 30 m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} --- !u!23 &23000013759787126 MeshRenderer: @@ -1429,6 +1449,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1440,6 +1461,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1506,6 +1528,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1517,6 +1540,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1584,6 +1608,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1595,6 +1620,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1666,6 +1692,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1677,6 +1704,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1758,6 +1786,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1769,6 +1798,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1789,9 +1819,15 @@ TextMesh: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1000011145971322} - m_Text: 'Reference README.md + m_Text: 'Poly was shut down + + on 2021/06/30 + - to see Poly content' + Icosa Gallery support + + coming + soon!' m_OffsetZ: 0 m_CharacterSize: 0.04 m_LineSpacing: 0.72 @@ -1863,6 +1899,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1874,6 +1911,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1965,6 +2003,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1976,6 +2015,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2123,6 +2163,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2134,6 +2175,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2248,6 +2290,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2259,6 +2302,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2327,6 +2371,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2338,6 +2383,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2460,6 +2506,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2471,6 +2518,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2581,6 +2629,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2592,6 +2641,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2688,6 +2738,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2699,6 +2750,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2849,6 +2901,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2860,6 +2913,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2926,6 +2980,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2937,6 +2992,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3027,6 +3083,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3038,6 +3095,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3124,6 +3182,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3135,6 +3194,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3204,6 +3264,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3215,6 +3276,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3331,6 +3393,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3342,6 +3405,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3450,6 +3514,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3461,6 +3526,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3527,6 +3593,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3538,6 +3605,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3631,6 +3699,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3642,6 +3711,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3700,6 +3770,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3711,6 +3782,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3791,6 +3863,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3802,6 +3875,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3890,6 +3964,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3901,6 +3976,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3999,6 +4075,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4010,6 +4087,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4073,9 +4151,9 @@ MeshCollider: m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 - serializedVersion: 3 + serializedVersion: 4 m_Convex: 0 - m_CookingOptions: 14 + m_CookingOptions: 30 m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} --- !u!23 &23000011807010844 MeshRenderer: @@ -4091,6 +4169,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4102,6 +4181,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4162,6 +4242,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4173,6 +4254,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4239,6 +4321,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4250,6 +4333,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4320,6 +4404,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4331,6 +4416,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4443,6 +4529,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4454,6 +4541,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4523,6 +4611,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4534,6 +4623,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4716,6 +4806,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4727,6 +4818,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4845,6 +4937,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4856,6 +4949,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4944,6 +5038,7 @@ MeshRenderer: m_MotionVectors: 0 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4955,6 +5050,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5023,6 +5119,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5034,6 +5131,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5164,6 +5262,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5175,6 +5274,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5269,6 +5369,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5280,6 +5381,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5388,6 +5490,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5399,6 +5502,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5462,9 +5566,9 @@ MeshCollider: m_Material: {fileID: 0} m_IsTrigger: 0 m_Enabled: 1 - serializedVersion: 3 + serializedVersion: 4 m_Convex: 0 - m_CookingOptions: 14 + m_CookingOptions: 30 m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} --- !u!23 &23000010401483648 MeshRenderer: @@ -5480,6 +5584,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5491,6 +5596,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5557,6 +5663,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5568,6 +5675,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5634,6 +5742,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5645,6 +5754,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5714,6 +5824,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5725,6 +5836,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5839,6 +5951,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5850,6 +5963,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5920,6 +6034,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5931,6 +6046,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6042,6 +6158,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6053,6 +6170,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6111,6 +6229,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6122,6 +6241,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6210,6 +6330,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6221,6 +6342,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6243,7 +6365,6 @@ GameObject: m_Component: - component: {fileID: 224789936601444018} - component: {fileID: 23360632483608242} - - component: {fileID: 33616032130617646} - component: {fileID: 114856574822214844} - component: {fileID: 222434887125505244} m_Layer: 16 @@ -6286,6 +6407,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6297,6 +6419,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6309,14 +6432,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33616032130617646 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1771317030911618} - m_Mesh: {fileID: 0} --- !u!114 &114856574822214844 MonoBehaviour: m_ObjectHideFlags: 0 @@ -6332,6 +6447,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 + m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -6339,7 +6455,8 @@ MonoBehaviour: - Check back soon!' + Check + back soon!' m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: fce54057bad3d2d4cb3c36ee394be518, type: 2} m_sharedMaterial: {fileID: 2133298, guid: fce54057bad3d2d4cb3c36ee394be518, type: 2} @@ -6360,13 +6477,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.5 m_fontSizeBase: 1.5 m_fontWeight: 400 @@ -6374,7 +6490,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 258 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -24.8 @@ -6384,10 +6502,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -6395,42 +6511,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114856574822214844} - characterCount: 42 - spriteCount: 0 - spaceCount: 7 - wordCount: 7 - linkCount: 0 - lineCount: 4 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23360632483608242} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222434887125505244 CanvasRenderer: m_ObjectHideFlags: 0 @@ -6485,6 +6582,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6496,6 +6594,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6620,6 +6719,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6631,6 +6731,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6729,6 +6830,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6740,6 +6842,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6799,6 +6902,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6810,6 +6914,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6868,6 +6973,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6879,6 +6985,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6969,6 +7076,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6980,6 +7088,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 diff --git a/Assets/Prefabs/Panels/PolyPanel_Mobile.prefab b/Assets/Prefabs/Panels/PolyPanel_Mobile.prefab index e8c4df3f67..37e821ae92 100644 --- a/Assets/Prefabs/Panels/PolyPanel_Mobile.prefab +++ b/Assets/Prefabs/Panels/PolyPanel_Mobile.prefab @@ -639,9 +639,15 @@ TextMesh: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1059040247519986} - m_Text: 'Reference README.md + m_Text: 'Poly was shut down - to see Poly content' + on 2021/06/30 + + + Icosa Gallery support + + coming + soon!' m_OffsetZ: 0 m_CharacterSize: 0.04 m_LineSpacing: 0.72 @@ -2185,7 +2191,6 @@ Transform: - {fileID: 4779551979064258} - {fileID: 4701617601775568} - {fileID: 4047569206032124} - - {fileID: 7310688656716639473} - {fileID: 1923083296758553395} m_Father: {fileID: 4828856797878572} m_RootOrder: 2 @@ -3442,7 +3447,6 @@ MonoBehaviour: m_NoLikesMessage: {fileID: 1404347566721218} m_NotLoggedInMessage: {fileID: 1980230749336636} m_OutOfDateMessage: {fileID: 1399114942218000} - m_NotSupportedMessage: {fileID: 8535507167710824293} m_NoPolyConnectionMessage: {fileID: 8574273503815320331} --- !u!114 &114380231432778700 MonoBehaviour: @@ -4070,7 +4074,6 @@ GameObject: m_Component: - component: {fileID: 224745177339356746} - component: {fileID: 23818486215481526} - - component: {fileID: 33909207031319488} - component: {fileID: 114402005008384526} - component: {fileID: 222674842432494760} m_Layer: 16 @@ -4138,14 +4141,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33909207031319488 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1562360288681946} - m_Mesh: {fileID: 0} --- !u!114 &114402005008384526 MonoBehaviour: m_ObjectHideFlags: 0 @@ -4191,13 +4186,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.5 m_fontSizeBase: 1.5 m_fontWeight: 400 @@ -4205,7 +4199,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 258 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -24.8 @@ -4215,10 +4211,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -4226,42 +4220,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114402005008384526} - characterCount: 57 - spriteCount: 0 - spaceCount: 8 - wordCount: 8 - linkCount: 0 - lineCount: 5 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23818486215481526} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222674842432494760 CanvasRenderer: m_ObjectHideFlags: 0 @@ -6773,195 +6748,6 @@ MonoBehaviour: m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 m_ButtonType: 2 ---- !u!1 &909253823191646670 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 7416102874870314108} - - component: {fileID: 4362281226743617159} - - component: {fileID: 7957112794254837832} - - component: {fileID: 8124998602902447903} - m_Layer: 16 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &7416102874870314108 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 909253823191646670} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.21, y: 0.057, z: -0.019999992} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 7310688656716639473} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &4362281226743617159 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 909253823191646670} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 0 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 543b312efaeb6aa4aa25a9e07e815953, 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: 0 - 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 ---- !u!102 &7957112794254837832 -TextMesh: - serializedVersion: 3 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 909253823191646670} - m_Text: 'Poly support is - - not available for - - Quest 1.' - m_OffsetZ: 0 - m_CharacterSize: 0.04 - m_LineSpacing: 0.72 - m_Anchor: 4 - m_Alignment: 1 - m_TabSize: 4 - m_FontSize: 36 - m_FontStyle: 0 - m_RichText: 1 - m_Font: {fileID: 12800000, guid: aa94fec06c672f74d86409a6979db921, type: 3} - m_Color: - serializedVersion: 2 - rgba: 4294967295 ---- !u!114 &8124998602902447903 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 909253823191646670} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: b8c8b338e308b6347866d6c6b07f08d1, type: 3} - m_Name: - m_EditorClassIdentifier: ---- !u!1 &1794015348108585601 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 6306549151893145362} - - component: {fileID: 8181895919174244911} - - component: {fileID: 6235584819646659535} - m_Layer: 16 - m_Name: PopupBg - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &6306549151893145362 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1794015348108585601} - m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067} - m_LocalPosition: {x: -0, y: 0, z: 0} - m_LocalScale: {x: 100, y: 100, z: 100} - m_Children: [] - m_Father: {fileID: 3136968242669573838} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &8181895919174244911 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1794015348108585601} - m_Mesh: {fileID: 4300002, guid: 494f6a456f266384a85d4868be7b55bf, type: 3} ---- !u!23 &6235584819646659535 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1794015348108585601} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: db0305ff9081c3b448ac79e85d26e5d4, 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: 0 - 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 --- !u!1 &2312477839234184697 GameObject: m_ObjectHideFlags: 0 @@ -7089,85 +6875,6 @@ TextMesh: m_Color: serializedVersion: 2 rgba: 4294967295 ---- !u!1 &3713642919813512947 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5569932441852800878} - - component: {fileID: 8425418421498259042} - - component: {fileID: 1084758917609241836} - m_Layer: 16 - m_Name: PopupBorder - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &5569932441852800878 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3713642919813512947} - m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067} - m_LocalPosition: {x: -0, y: 0, z: 0} - m_LocalScale: {x: 100, y: 100, z: 100} - m_Children: [] - m_Father: {fileID: 3136968242669573838} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &8425418421498259042 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3713642919813512947} - m_Mesh: {fileID: 4300000, guid: 494f6a456f266384a85d4868be7b55bf, type: 3} ---- !u!23 &1084758917609241836 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3713642919813512947} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 77dd4ff8b1158a84397aba783cd0af05, 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: 0 - 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 --- !u!1 &4300565762853731511 GameObject: m_ObjectHideFlags: 0 @@ -7326,110 +7033,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!1 &7087898478213236439 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 3136968242669573838} - m_Layer: 16 - m_Name: PolyPopupMesh - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &3136968242669573838 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 7087898478213236439} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.209, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 6306549151893145362} - - {fileID: 5569932441852800878} - m_Father: {fileID: 7310688656716639473} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &8535507167710824293 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 7310688656716639473} - - component: {fileID: 2919755284973709548} - m_Layer: 16 - m_Name: NotSupported - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &7310688656716639473 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8535507167710824293} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: -0.099999905, z: -0.05} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 7416102874870314108} - - {fileID: 3136968242669573838} - m_Father: {fileID: 4560577839664226} - m_RootOrder: 26 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &2919755284973709548 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8535507167710824293} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 0 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 543b312efaeb6aa4aa25a9e07e815953, 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: 0 - 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 --- !u!1 &8574273503815320331 GameObject: m_ObjectHideFlags: 0 @@ -7461,7 +7064,7 @@ Transform: - {fileID: 337764931504118810} - {fileID: 2679648436142671453} m_Father: {fileID: 4560577839664226} - m_RootOrder: 27 + m_RootOrder: 26 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!23 &5882225690822750397 MeshRenderer: diff --git a/Assets/Prefabs/Panels/SketchbookPanel.prefab b/Assets/Prefabs/Panels/SketchbookPanel.prefab index f88c6be419..f245c22081 100644 --- a/Assets/Prefabs/Panels/SketchbookPanel.prefab +++ b/Assets/Prefabs/Panels/SketchbookPanel.prefab @@ -7716,13 +7716,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.8 m_fontSizeBase: 1.8 m_fontWeight: 400 @@ -7730,6 +7729,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 258 m_characterSpacing: 0 m_wordSpacing: 0 @@ -7740,10 +7741,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -7751,42 +7750,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114000010157185962} - characterCount: 23 - spriteCount: 0 - spaceCount: 2 - wordCount: 2 - linkCount: 0 - lineCount: 2 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23000014001274338} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222469015342790522 CanvasRenderer: m_ObjectHideFlags: 0 @@ -10751,13 +10731,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.5 m_fontSizeBase: 1.5 m_fontWeight: 400 @@ -10765,6 +10744,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 514 m_characterSpacing: 0 m_wordSpacing: 0 @@ -10775,10 +10756,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -10786,42 +10765,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114268548082608368} - characterCount: 56 - spriteCount: 0 - spaceCount: 8 - wordCount: 8 - linkCount: 0 - lineCount: 4 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23402643382222860} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222820159282912654 CanvasRenderer: m_ObjectHideFlags: 0 @@ -11479,9 +11439,15 @@ TextMesh: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1685631667352684} - m_Text: 'Reference Readme.md + m_Text: 'Poly was shut down + + on 2021/06/30 + + + Icosa Gallery support - to see Poly content' + coming + soon!' m_OffsetZ: 0 m_CharacterSize: 0.04 m_LineSpacing: 0.72 diff --git a/Assets/Prefabs/Panels/SketchbookPanel_Mobile.prefab b/Assets/Prefabs/Panels/SketchbookPanel_Mobile.prefab index ca53bb325c..812981e046 100644 --- a/Assets/Prefabs/Panels/SketchbookPanel_Mobile.prefab +++ b/Assets/Prefabs/Panels/SketchbookPanel_Mobile.prefab @@ -855,13 +855,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.5 m_fontSizeBase: 1.5 m_fontWeight: 400 @@ -869,6 +868,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 514 m_characterSpacing: 0 m_wordSpacing: 0 @@ -879,10 +880,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -890,42 +889,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114867466404131338} - characterCount: 59 - spriteCount: 0 - spaceCount: 8 - wordCount: 8 - linkCount: 0 - lineCount: 5 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23626698138532436} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222852931189322450 CanvasRenderer: m_ObjectHideFlags: 0 @@ -1154,9 +1134,15 @@ TextMesh: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1112271305587344} - m_Text: 'Reference Readme.md + m_Text: 'Poly was shut down + + on 2021/06/30 + - to see Poly content' + Icosa Gallery support + + coming + soon!' m_OffsetZ: 0 m_CharacterSize: 0.04 m_LineSpacing: 0.72 @@ -2466,7 +2452,7 @@ Transform: - {fileID: 4109784948210122} - {fileID: 4103449217174868} m_Father: {fileID: 4693201109037372} - m_RootOrder: 43 + m_RootOrder: 42 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1226457801035670 GameObject: @@ -2619,7 +2605,6 @@ GameObject: m_Component: - component: {fileID: 224277743690764568} - component: {fileID: 23981865583111516} - - component: {fileID: 33393666251163146} - component: {fileID: 114535389247359464} - component: {fileID: 222399488443535752} m_Layer: 16 @@ -2687,14 +2672,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33393666251163146 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1257349002299910} - m_Mesh: {fileID: 0} --- !u!114 &114535389247359464 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2735,13 +2712,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 7.5 m_fontSizeBase: 7.5 m_fontWeight: 400 @@ -2749,7 +2725,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 514 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -30 @@ -2759,10 +2737,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -2770,42 +2746,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114535389247359464} - characterCount: 2 - spriteCount: 0 - spaceCount: 0 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23981865583111516} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222399488443535752 CanvasRenderer: m_ObjectHideFlags: 0 @@ -2856,7 +2813,6 @@ GameObject: m_Component: - component: {fileID: 224439888691997358} - component: {fileID: 23463661311867064} - - component: {fileID: 33351952751382280} - component: {fileID: 114492111000770386} - component: {fileID: 222203207093477618} m_Layer: 16 @@ -2924,14 +2880,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33351952751382280 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1271921299473206} - m_Mesh: {fileID: 0} --- !u!114 &114492111000770386 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2972,13 +2920,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.7 m_fontSizeBase: 1.7 m_fontWeight: 400 @@ -2986,7 +2933,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 513 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 512 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -30 @@ -2996,10 +2945,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -3007,42 +2954,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: -0.5816542, w: 0} - m_textInfo: - textComponent: {fileID: 114492111000770386} - characterCount: 13 - spriteCount: 0 - spaceCount: 1 - wordCount: 2 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23463661311867064} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222203207093477618 CanvasRenderer: m_ObjectHideFlags: 0 @@ -4587,7 +4515,6 @@ GameObject: m_Component: - component: {fileID: 224989062133179478} - component: {fileID: 23018417349283610} - - component: {fileID: 33862795234628370} - component: {fileID: 114145380469352344} - component: {fileID: 222021056960368100} m_Layer: 16 @@ -4655,14 +4582,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33862795234628370 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1522417489651156} - m_Mesh: {fileID: 0} --- !u!114 &114145380469352344 MonoBehaviour: m_ObjectHideFlags: 0 @@ -4703,13 +4622,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.75 m_fontSizeBase: 1.75 m_fontWeight: 400 @@ -4717,7 +4635,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 513 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 512 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -30 @@ -4727,10 +4647,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -4738,42 +4656,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114145380469352344} - characterCount: 10 - spriteCount: 0 - spaceCount: 1 - wordCount: 2 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23018417349283610} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222021056960368100 CanvasRenderer: m_ObjectHideFlags: 0 @@ -4990,7 +4889,6 @@ Transform: - {fileID: 4749545135025590} - {fileID: 7767045299853156072} - {fileID: 4506554633694276} - - {fileID: 7857927391809874251} - {fileID: 5722579980162669799} - {fileID: 4152240497379446} - {fileID: 4456092995058588} @@ -5293,7 +5191,6 @@ MonoBehaviour: m_NoShowcaseMessage: {fileID: 1940633011834670} m_ContactingServerMessage: {fileID: 1973401571227800} m_OutOfDateMessage: {fileID: 1129926072891758} - m_NotSupportedMessage: {fileID: 6253682750621856249} m_NoPolyConnectionMessage: {fileID: 7970090777216773623} m_OnlineGalleryButtonRenderer: {fileID: 23749634511345498} m_IconsOnFirstPage: @@ -5664,7 +5561,6 @@ GameObject: m_Component: - component: {fileID: 224955751366141872} - component: {fileID: 23187357395441518} - - component: {fileID: 33923004333116478} - component: {fileID: 114016395531555756} - component: {fileID: 222028263026159632} m_Layer: 16 @@ -5732,14 +5628,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33923004333116478 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1577393369790296} - m_Mesh: {fileID: 0} --- !u!114 &114016395531555756 MonoBehaviour: m_ObjectHideFlags: 0 @@ -5780,13 +5668,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 7.5 m_fontSizeBase: 7.5 m_fontWeight: 400 @@ -5794,7 +5681,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 514 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -30 @@ -5804,10 +5693,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -5815,42 +5702,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114016395531555756} - characterCount: 2 - spriteCount: 0 - spaceCount: 0 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23187357395441518} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222028263026159632 CanvasRenderer: m_ObjectHideFlags: 0 @@ -6618,7 +6486,6 @@ GameObject: m_Component: - component: {fileID: 224470271716086786} - component: {fileID: 23926345637384838} - - component: {fileID: 33019660592201924} - component: {fileID: 114919000555787868} - component: {fileID: 222378607824961068} m_Layer: 16 @@ -6686,14 +6553,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33019660592201924 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1662863386244198} - m_Mesh: {fileID: 0} --- !u!114 &114919000555787868 MonoBehaviour: m_ObjectHideFlags: 0 @@ -6734,13 +6593,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 7.5 m_fontSizeBase: 7.5 m_fontWeight: 400 @@ -6748,7 +6606,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 514 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -30 @@ -6758,10 +6618,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -6769,42 +6627,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114919000555787868} - characterCount: 2 - spriteCount: 0 - spaceCount: 0 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23926345637384838} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222378607824961068 CanvasRenderer: m_ObjectHideFlags: 0 @@ -6971,7 +6810,7 @@ Transform: - {fileID: 4545503159166352} - {fileID: 4361093411123060} m_Father: {fileID: 4693201109037372} - m_RootOrder: 42 + m_RootOrder: 41 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!65 &65127978579558932 BoxCollider: @@ -7737,7 +7576,6 @@ GameObject: m_Component: - component: {fileID: 224958420645041938} - component: {fileID: 23418843790040548} - - component: {fileID: 33743004510314894} - component: {fileID: 114024942543862542} - component: {fileID: 222786800629029096} m_Layer: 16 @@ -7805,14 +7643,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33743004510314894 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1774906437539236} - m_Mesh: {fileID: 0} --- !u!114 &114024942543862542 MonoBehaviour: m_ObjectHideFlags: 0 @@ -7853,13 +7683,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 7.5 m_fontSizeBase: 7.5 m_fontWeight: 400 @@ -7867,7 +7696,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 514 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -30 @@ -7877,10 +7708,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -7888,42 +7717,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114024942543862542} - characterCount: 2 - spriteCount: 0 - spaceCount: 0 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23418843790040548} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222786800629029096 CanvasRenderer: m_ObjectHideFlags: 0 @@ -8422,7 +8232,6 @@ GameObject: m_Component: - component: {fileID: 224613440508278584} - component: {fileID: 23192977646569154} - - component: {fileID: 33230345896443718} - component: {fileID: 114047351234399848} - component: {fileID: 222776055155372450} m_Layer: 16 @@ -8490,14 +8299,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &33230345896443718 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1864727706781314} - m_Mesh: {fileID: 0} --- !u!114 &114047351234399848 MonoBehaviour: m_ObjectHideFlags: 0 @@ -8538,13 +8339,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 7.5 m_fontSizeBase: 7.5 m_fontWeight: 400 @@ -8552,7 +8352,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 514 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -30 @@ -8562,10 +8364,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -8573,42 +8373,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114047351234399848} - characterCount: 2 - spriteCount: 0 - spaceCount: 0 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23192977646569154} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222776055155372450 CanvasRenderer: m_ObjectHideFlags: 0 @@ -8791,13 +8572,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.8 m_fontSizeBase: 1.8 m_fontWeight: 400 @@ -8805,6 +8585,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 258 m_characterSpacing: 0 m_wordSpacing: 0 @@ -8815,10 +8597,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -8826,42 +8606,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 114967526442094278} - characterCount: 23 - spriteCount: 0 - spaceCount: 2 - wordCount: 2 - linkCount: 0 - lineCount: 2 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 23320653143545910} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &222063169041281974 CanvasRenderer: m_ObjectHideFlags: 0 @@ -11025,85 +10786,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!1 &745235868621797431 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 4922524394818125135} - - component: {fileID: 672586363174913510} - - component: {fileID: 2290161286931591549} - m_Layer: 16 - m_Name: PopupBg - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &4922524394818125135 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 745235868621797431} - m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067} - m_LocalPosition: {x: -0, y: 0, z: 0} - m_LocalScale: {x: 100, y: 100, z: 100} - m_Children: [] - m_Father: {fileID: 1906483129949303557} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &672586363174913510 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 745235868621797431} - m_Mesh: {fileID: 4300002, guid: 494f6a456f266384a85d4868be7b55bf, type: 3} ---- !u!23 &2290161286931591549 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 745235868621797431} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: db0305ff9081c3b448ac79e85d26e5d4, 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: 0 - 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 --- !u!1 &1749092978368219768 GameObject: m_ObjectHideFlags: 0 @@ -11185,103 +10867,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!1 &2175742642630869275 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 5280198239423320734} - - component: {fileID: 2597121799509671687} - - component: {fileID: 5460303986573488847} - m_Layer: 16 - m_Name: Text - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &5280198239423320734 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2175742642630869275} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: -0.019999996} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 7857927391809874251} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &2597121799509671687 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2175742642630869275} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 0 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 543b312efaeb6aa4aa25a9e07e815953, 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: 0 - 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 ---- !u!102 &5460303986573488847 -TextMesh: - serializedVersion: 3 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2175742642630869275} - m_Text: 'Poly support is - - not available for - - Quest 1.' - m_OffsetZ: 0 - m_CharacterSize: 0.04 - m_LineSpacing: 0.72 - m_Anchor: 4 - m_Alignment: 1 - m_TabSize: 4 - m_FontSize: 36 - m_FontStyle: 0 - m_RichText: 1 - m_Font: {fileID: 12800000, guid: aa94fec06c672f74d86409a6979db921, type: 3} - m_Color: - serializedVersion: 2 - rgba: 4294967295 --- !u!1 &2524403478789502861 GameObject: m_ObjectHideFlags: 0 @@ -11520,85 +11105,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!1 &2636189778788450019 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 2371951087387013835} - - component: {fileID: 7914194880567865711} - - component: {fileID: 9046941926999023471} - m_Layer: 16 - m_Name: PopupBorder - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &2371951087387013835 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2636189778788450019} - m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067} - m_LocalPosition: {x: -0, y: 0, z: 0} - m_LocalScale: {x: 100, y: 100, z: 100} - m_Children: [] - m_Father: {fileID: 1906483129949303557} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &7914194880567865711 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2636189778788450019} - m_Mesh: {fileID: 4300000, guid: 494f6a456f266384a85d4868be7b55bf, type: 3} ---- !u!23 &9046941926999023471 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2636189778788450019} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 1 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 77dd4ff8b1158a84397aba783cd0af05, 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: 0 - 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 --- !u!1 &2894443105453975818 GameObject: m_ObjectHideFlags: 0 @@ -12221,38 +11727,6 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 8daae932e00bdb749b4f667b08f50ca8, type: 3} m_Name: m_EditorClassIdentifier: ---- !u!1 &5692830394226015156 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1906483129949303557} - m_Layer: 16 - m_Name: BlocksLibraryPopupMesh - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1906483129949303557 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 5692830394226015156} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.000000014901161, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 4922524394818125135} - - {fileID: 2371951087387013835} - m_Father: {fileID: 7857927391809874251} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &5974781518093638573 GameObject: m_ObjectHideFlags: 0 @@ -12562,78 +12036,6 @@ BoxCollider: serializedVersion: 2 m_Size: {x: 2, y: 1.0000001, z: 0.1} m_Center: {x: 0, y: 0, z: 0} ---- !u!1 &6253682750621856249 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 7857927391809874251} - - component: {fileID: 8154361136847596005} - m_Layer: 16 - m_Name: NotSupported - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!4 &7857927391809874251 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6253682750621856249} - m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: 0.24000016, y: 0, z: -0.1} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: - - {fileID: 5280198239423320734} - - {fileID: 1906483129949303557} - m_Father: {fileID: 4693201109037372} - m_RootOrder: 40 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!23 &8154361136847596005 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 6253682750621856249} - m_Enabled: 1 - m_CastShadows: 0 - m_ReceiveShadows: 0 - m_DynamicOccludee: 1 - m_MotionVectors: 1 - m_LightProbeUsage: 0 - m_ReflectionProbeUsage: 1 - m_RayTracingMode: 2 - m_RenderingLayerMask: 1 - m_RendererPriority: 0 - m_Materials: - - {fileID: 2100000, guid: 543b312efaeb6aa4aa25a9e07e815953, 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: 0 - 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 --- !u!1 &6420382258787157571 GameObject: m_ObjectHideFlags: 0 @@ -13195,7 +12597,7 @@ Transform: - {fileID: 4675293668892710830} - {fileID: 4157031568463988250} m_Father: {fileID: 4693201109037372} - m_RootOrder: 41 + m_RootOrder: 40 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!23 &1292325159885567485 MeshRenderer: diff --git a/Assets/Prefabs/Panels/Widgets/JitterSlider.prefab b/Assets/Prefabs/Panels/Widgets/JitterSlider.prefab new file mode 100644 index 0000000000..a3bbac5317 --- /dev/null +++ b/Assets/Prefabs/Panels/Widgets/JitterSlider.prefab @@ -0,0 +1,621 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &975834435814208152 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975834435814114336} + - component: {fileID: 975834435817497818} + - component: {fileID: 975834435816094086} + m_Layer: 16 + m_Name: Cap + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &975834435814114336 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814208152} + m_LocalRotation: {x: 0, y: 0, z: 1, w: 0} + m_LocalPosition: {x: 0.1683, y: 0, z: 0.00021062419} + m_LocalScale: {x: 0.0375, y: 0.0375, z: 0.0375} + m_Children: [] + m_Father: {fileID: 975834435814123574} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &975834435817497818 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814208152} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &975834435816094086 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814208152} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: ca448c25e886c544796b10b98d8aa9cc, 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: 0 + 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 +--- !u!1 &975834435814209696 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975834435814035598} + - component: {fileID: 975834435817565662} + - component: {fileID: 975834435816409572} + - component: {fileID: 975834435824087934} + m_Layer: 16 + m_Name: MinIcon + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &975834435814035598 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814209696} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.2715, y: 0, z: 0} + m_LocalScale: {x: 0.8, y: 0.8, z: 0.8} + m_Children: [] + m_Father: {fileID: 975834435814123574} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &975834435817565662 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814209696} + m_Mesh: {fileID: 4300000, guid: 260cc07aabcea6d41a633a35c1103a6c, type: 3} +--- !u!23 &975834435816409572 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814209696} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 40d29de2bdc11f04dbfa25059165916e, 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: 0 + 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 +--- !u!114 &975834435824087934 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814209696} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0fda994627665a24b888af25f8c55ce4, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Icon: {fileID: 2800000, guid: f74f6eac3e3e3c640b1a343ec46ba2dd, type: 3} +--- !u!1 &975834435814213458 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975834435814149948} + - component: {fileID: 975834435816397226} + - component: {fileID: 975834435817486590} + m_Layer: 16 + m_Name: Mesh + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &975834435814149948 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814213458} + 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.0375, z: 1} + m_Children: [] + m_Father: {fileID: 975834435814123574} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &975834435816397226 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814213458} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: db2d9e5107064e64ea8ce921e6f24458, 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: 0 + 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 +--- !u!33 &975834435817486590 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814213458} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!1 &975834435814379256 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975834435814079746} + - component: {fileID: 975834435817477596} + - component: {fileID: 975834435816411850} + - component: {fileID: 975834435824077772} + m_Layer: 16 + m_Name: MaxIcon + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &975834435814079746 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814379256} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.2698, y: -0, z: 0} + m_LocalScale: {x: 0.8, y: 0.8, z: 1} + m_Children: [] + m_Father: {fileID: 975834435814123574} + m_RootOrder: 6 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &975834435817477596 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814379256} + m_Mesh: {fileID: 4300000, guid: 260cc07aabcea6d41a633a35c1103a6c, type: 3} +--- !u!23 &975834435816411850 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814379256} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 40d29de2bdc11f04dbfa25059165916e, 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: 0 + 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 +--- !u!114 &975834435824077772 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814379256} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0fda994627665a24b888af25f8c55ce4, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Icon: {fileID: 2800000, guid: ab8b9a0b96b6cb74ca1e518f3c56b425, type: 3} +--- !u!1 &975834435814379478 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975834435814123574} + - component: {fileID: 842595788728861292} + m_Layer: 16 + m_Name: JitterSlider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &975834435814123574 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814379478} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0.45, z: -0.03} + m_LocalScale: {x: 2, y: 2, z: 2} + m_Children: + - {fileID: 975834435814037876} + - {fileID: 975834435814149948} + - {fileID: 975834435814146394} + - {fileID: 975834435814114336} + - {fileID: 975834435814062736} + - {fileID: 975834435814035598} + - {fileID: 975834435814079746} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &842595788728861292 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814379478} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: e666c33c1f8d4893919cca053b306646, type: 3} + m_Name: + m_EditorClassIdentifier: + m_DescriptionType: 1 + m_DescriptionYOffset: 0 + m_DescriptionText: Jitter + m_DescriptionTextExtra: + m_DescriptionActivateSpeed: 12 + m_DescriptionZScale: 10 + m_Nob: {fileID: 975834435814391916} + m_Mesh: {fileID: 975834435816397226} + JitterProperty: 0 +--- !u!1 &975834435814391916 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975834435814146394} + - component: {fileID: 975834435817539988} + - component: {fileID: 975834435816447630} + - component: {fileID: 873033023682696816} + m_Layer: 16 + m_Name: SliderPosition + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &975834435814146394 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814391916} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.1307, y: 0, z: 0} + m_LocalScale: {x: 0.01, y: 0.03, z: 0.015} + m_Children: [] + m_Father: {fileID: 975834435814123574} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &975834435817539988 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814391916} + m_Mesh: {fileID: 4300000, guid: 5ef960ddf11c1fd4983638f56f6a8be0, type: 3} +--- !u!23 &975834435816447630 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814391916} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 3e92ccbfed650604686991e69902e663, 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: 0 + 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 +--- !u!114 &873033023682696816 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814391916} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1aaefde5afe80784e908d27fcb05a101, type: 3} + m_Name: + m_EditorClassIdentifier: + m_OffsetOverride: -1 +--- !u!1 &975834435814400432 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975834435814037876} + - component: {fileID: 975834435811877436} + m_Layer: 16 + m_Name: Collider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &975834435814037876 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814400432} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.295, y: 0.109721534, z: 1} + m_Children: [] + m_Father: {fileID: 975834435814123574} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!65 &975834435811877436 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814400432} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 0.1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!1 &975834435814423874 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 975834435814062736} + - component: {fileID: 975834435817503334} + - component: {fileID: 975834435816451644} + m_Layer: 16 + m_Name: Cap + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &975834435814062736 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814423874} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.1682, y: -0, z: 0.0002105044} + m_LocalScale: {x: 0.0375, y: 0.0375, z: 0.0375} + m_Children: [] + m_Father: {fileID: 975834435814123574} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &975834435817503334 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814423874} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &975834435816451644 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 975834435814423874} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: ca448c25e886c544796b10b98d8aa9cc, 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: 0 + 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 diff --git a/Assets/Prefabs/Panels/Widgets/JitterSlider.prefab.meta b/Assets/Prefabs/Panels/Widgets/JitterSlider.prefab.meta new file mode 100644 index 0000000000..170a898f56 --- /dev/null +++ b/Assets/Prefabs/Panels/Widgets/JitterSlider.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3930ecf208aacf0498f0c2b545249067 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/PopUps/PopUpWindow_Accounts.prefab b/Assets/Prefabs/PopUps/PopUpWindow_Accounts.prefab index 22b63e256e..66829ab840 100644 --- a/Assets/Prefabs/PopUps/PopUpWindow_Accounts.prefab +++ b/Assets/Prefabs/PopUps/PopUpWindow_Accounts.prefab @@ -46,6 +46,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -57,6 +58,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -145,6 +147,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -156,6 +159,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -224,6 +228,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -235,6 +240,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -333,6 +339,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -344,6 +351,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -412,6 +420,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -423,6 +432,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -534,6 +544,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -545,6 +556,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -637,6 +649,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -648,6 +661,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -770,6 +784,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -781,6 +796,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -904,6 +920,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -915,6 +932,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1034,6 +1052,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1045,6 +1064,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1113,6 +1133,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1124,6 +1145,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1234,6 +1256,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1245,6 +1268,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1333,6 +1357,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1344,6 +1369,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1410,6 +1436,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1421,6 +1448,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1487,6 +1515,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1498,6 +1527,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1564,6 +1594,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1575,6 +1606,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1643,6 +1675,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1654,6 +1687,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1765,6 +1799,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1776,6 +1811,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1889,6 +1925,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1900,6 +1937,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1980,6 +2018,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1991,6 +2030,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2071,6 +2111,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2082,6 +2123,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2170,6 +2212,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2181,6 +2224,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2247,6 +2291,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2258,6 +2303,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2324,6 +2370,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2335,6 +2382,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2357,7 +2405,6 @@ GameObject: m_Component: - component: {fileID: 90735575297890764} - component: {fileID: 6241670906414567126} - - component: {fileID: 1060290452717650415} - component: {fileID: 3509174102411407934} - component: {fileID: 5507927208223363269} m_Layer: 0 @@ -2400,6 +2447,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2411,6 +2459,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2423,14 +2472,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &1060290452717650415 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2675879709888175167} - m_Mesh: {fileID: 0} --- !u!114 &3509174102411407934 MonoBehaviour: m_ObjectHideFlags: 0 @@ -2446,6 +2487,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 + m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -2470,13 +2512,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.3 m_fontSizeBase: 1.3 m_fontWeight: 400 @@ -2484,7 +2525,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 258 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -22 @@ -2494,10 +2537,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 3 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -2505,42 +2546,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 3509174102411407934} - characterCount: 33 - spriteCount: 0 - spaceCount: 1 - wordCount: 2 - linkCount: 0 - lineCount: 2 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 6241670906414567126} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &5507927208223363269 CanvasRenderer: m_ObjectHideFlags: 0 @@ -2603,6 +2625,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2614,6 +2637,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2684,6 +2708,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2695,6 +2720,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2883,6 +2909,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2894,6 +2921,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3016,6 +3044,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3027,6 +3056,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3178,6 +3208,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3189,6 +3220,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3277,6 +3309,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3288,6 +3321,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3354,6 +3388,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3365,6 +3400,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3431,6 +3467,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3442,6 +3479,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3508,6 +3546,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3519,6 +3558,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3577,6 +3617,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3588,6 +3629,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3680,6 +3722,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3691,6 +3734,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3802,6 +3846,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3813,6 +3858,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3901,6 +3947,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3912,6 +3959,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3970,6 +4018,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3981,6 +4030,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4069,6 +4119,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4080,6 +4131,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4138,6 +4190,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4149,6 +4202,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4274,6 +4328,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4285,6 +4340,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4406,6 +4462,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4417,6 +4474,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4536,6 +4594,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4547,6 +4606,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4645,6 +4705,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4656,6 +4717,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4726,6 +4788,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4737,6 +4800,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4860,6 +4924,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4871,6 +4936,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5015,6 +5081,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5026,6 +5093,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5114,6 +5182,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5125,6 +5194,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5195,6 +5265,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5206,6 +5277,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5316,6 +5388,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5327,6 +5400,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5415,6 +5489,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5426,6 +5501,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5484,6 +5560,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5495,6 +5572,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5632,6 +5710,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5643,6 +5722,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5742,6 +5822,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5753,6 +5834,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5819,6 +5901,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5830,6 +5913,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5888,6 +5972,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5899,6 +5984,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5979,6 +6065,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5990,6 +6077,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6070,6 +6158,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6081,6 +6170,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6173,6 +6263,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6184,6 +6275,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6306,6 +6398,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6317,6 +6410,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6428,6 +6522,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6439,6 +6534,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6595,6 +6691,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6606,6 +6703,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6678,6 +6776,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6689,6 +6788,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6811,6 +6911,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6822,6 +6923,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6940,6 +7042,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6951,6 +7054,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7009,6 +7113,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7020,6 +7125,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7100,6 +7206,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7111,6 +7218,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7201,6 +7309,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7212,6 +7321,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7323,6 +7433,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7334,6 +7445,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7422,6 +7534,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7433,6 +7546,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7499,6 +7613,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7510,6 +7625,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7568,6 +7684,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7579,6 +7696,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7659,6 +7777,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7670,6 +7789,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7750,6 +7870,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7761,6 +7882,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7783,7 +7905,7 @@ TextMesh: m_GameObject: {fileID: 6872147048544176340} m_Text: 'Sign in to a Google account to access - Poly, Drive, and YouTube support.' + Drive and YouTube support.' m_OffsetZ: 0 m_CharacterSize: 0.02 m_LineSpacing: 1 @@ -7851,6 +7973,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7862,6 +7985,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7929,6 +8053,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7940,6 +8065,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8018,6 +8144,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8029,6 +8156,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8130,6 +8258,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8141,6 +8270,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8199,6 +8329,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8210,6 +8341,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8298,6 +8430,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8309,6 +8442,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8402,6 +8536,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8413,6 +8548,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8501,6 +8637,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8512,6 +8649,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8570,6 +8708,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8581,6 +8720,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8669,6 +8809,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8680,6 +8821,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8779,6 +8921,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8790,6 +8933,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8881,6 +9025,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8892,6 +9037,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8980,6 +9126,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8991,6 +9138,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9057,6 +9205,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9068,6 +9217,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9138,6 +9288,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9149,6 +9300,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9267,6 +9419,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9278,6 +9431,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9371,6 +9525,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9382,6 +9537,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9476,6 +9632,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9487,6 +9644,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9606,6 +9764,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9617,6 +9776,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9639,7 +9799,6 @@ GameObject: m_Component: - component: {fileID: 8425076696762416562} - component: {fileID: 8620201613594084264} - - component: {fileID: 8611566228953352506} - component: {fileID: 8530386015597152794} - component: {fileID: 8425419077067432758} m_Layer: 0 @@ -9682,6 +9841,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9693,6 +9853,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9705,14 +9866,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &8611566228953352506 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 8644312780941313480} - m_Mesh: {fileID: 0} --- !u!114 &8530386015597152794 MonoBehaviour: m_ObjectHideFlags: 0 @@ -9728,6 +9881,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 + m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -9752,13 +9906,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.3 m_fontSizeBase: 1.3 m_fontWeight: 400 @@ -9766,7 +9919,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 258 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -22 @@ -9776,10 +9931,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 3 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -9787,42 +9940,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 8530386015597152794} - characterCount: 33 - spriteCount: 0 - spaceCount: 1 - wordCount: 2 - linkCount: 0 - lineCount: 2 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 8620201613594084264} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &8425419077067432758 CanvasRenderer: m_ObjectHideFlags: 0 @@ -9887,6 +10021,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9898,6 +10033,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9964,6 +10100,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9975,6 +10112,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10033,6 +10171,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10044,6 +10183,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10132,6 +10272,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10143,6 +10284,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10366,6 +10508,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10377,6 +10520,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10468,6 +10612,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10479,6 +10624,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10605,6 +10751,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10616,6 +10763,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10735,6 +10883,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10746,6 +10895,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10812,6 +10962,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10823,6 +10974,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10881,6 +11033,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10892,6 +11045,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10984,6 +11138,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10995,6 +11150,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11113,6 +11269,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11124,6 +11281,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11159,6 +11317,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 + m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -11183,13 +11342,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.9 m_fontSizeBase: 1.9 m_fontWeight: 400 @@ -11197,6 +11355,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 514 m_characterSpacing: 0 m_wordSpacing: 0 @@ -11207,10 +11367,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -11218,42 +11376,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: -0.31141979, y: 0.45702958, z: -0.30795962, w: 0.5959687} - m_textInfo: - textComponent: {fileID: 16713193717165528} - characterCount: 24 - spriteCount: 0 - spaceCount: 3 - wordCount: 4 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 1252600676741874242} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &5130801771403371615 CanvasRenderer: m_ObjectHideFlags: 0 @@ -11308,6 +11447,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11319,6 +11459,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11413,6 +11554,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11424,6 +11566,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 diff --git a/Assets/Prefabs/PopUps/PopUpWindow_AccountsMobile.prefab b/Assets/Prefabs/PopUps/PopUpWindow_AccountsMobile.prefab index 258966113c..aff9672839 100644 --- a/Assets/Prefabs/PopUps/PopUpWindow_AccountsMobile.prefab +++ b/Assets/Prefabs/PopUps/PopUpWindow_AccountsMobile.prefab @@ -55,6 +55,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -66,6 +67,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -169,6 +171,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -180,6 +183,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -260,6 +264,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -271,6 +276,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -315,7 +321,6 @@ GameObject: m_Component: - component: {fileID: 5671332201540621434} - component: {fileID: 3458893495452859203} - - component: {fileID: 741416048718606080} - component: {fileID: 7294945872975306520} - component: {fileID: 6681841641274868330} m_Layer: 0 @@ -358,6 +363,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -369,6 +375,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -381,14 +388,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &741416048718606080 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 345939551622336693} - m_Mesh: {fileID: 0} --- !u!114 &7294945872975306520 MonoBehaviour: m_ObjectHideFlags: 0 @@ -404,6 +403,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 + m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -428,13 +428,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.3 m_fontSizeBase: 1.3 m_fontWeight: 400 @@ -442,7 +441,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 258 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -22 @@ -452,10 +453,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 3 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -463,42 +462,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 7294945872975306520} - characterCount: 33 - spriteCount: 0 - spaceCount: 1 - wordCount: 2 - linkCount: 0 - lineCount: 2 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 3458893495452859203} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &6681841641274868330 CanvasRenderer: m_ObjectHideFlags: 0 @@ -565,6 +545,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -576,6 +557,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -686,6 +668,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -697,6 +680,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -785,6 +769,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -796,6 +781,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -862,6 +848,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -873,6 +860,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -941,6 +929,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -952,6 +941,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1070,6 +1060,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1081,6 +1072,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1147,6 +1139,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1158,6 +1151,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1224,6 +1218,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1235,6 +1230,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1293,6 +1289,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1304,6 +1301,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1394,6 +1392,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1405,6 +1404,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1555,6 +1555,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1566,6 +1567,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1621,7 +1623,6 @@ GameObject: m_Component: - component: {fileID: 8994599516813195451} - component: {fileID: 8882778793136147678} - - component: {fileID: 3643989620201644681} - component: {fileID: 7567438379553646302} - component: {fileID: 1921071719770451323} m_Layer: 0 @@ -1664,6 +1665,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1675,6 +1677,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1687,14 +1690,6 @@ MeshRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 ---- !u!33 &3643989620201644681 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1252096709446425227} - m_Mesh: {fileID: 0} --- !u!114 &7567438379553646302 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1710,6 +1705,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 + m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -1734,13 +1730,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.3 m_fontSizeBase: 1.3 m_fontWeight: 400 @@ -1748,7 +1743,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 258 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: -22 @@ -1758,10 +1755,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 3 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -1769,42 +1764,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 7567438379553646302} - characterCount: 33 - spriteCount: 0 - spaceCount: 1 - wordCount: 2 - linkCount: 0 - lineCount: 2 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 8882778793136147678} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &1921071719770451323 CanvasRenderer: m_ObjectHideFlags: 0 @@ -1869,6 +1845,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -1880,6 +1857,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -1991,6 +1969,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2002,6 +1981,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2092,6 +2072,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2103,6 +2084,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2161,6 +2143,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2172,6 +2155,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2252,6 +2236,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2263,6 +2248,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2343,6 +2329,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2354,6 +2341,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2446,6 +2434,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2457,6 +2446,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2578,6 +2568,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2589,6 +2580,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2707,6 +2699,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2718,6 +2711,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2753,6 +2747,7 @@ MonoBehaviour: m_Material: {fileID: 0} m_Color: {r: 1, g: 1, b: 1, a: 1} m_RaycastTarget: 1 + m_Maskable: 1 m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] @@ -2777,13 +2772,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.9 m_fontSizeBase: 1.9 m_fontWeight: 400 @@ -2791,6 +2785,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 514 m_characterSpacing: 0 m_wordSpacing: 0 @@ -2801,10 +2797,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -2812,42 +2806,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: -0.31141979, y: 0.45702958, z: -0.30795962, w: 0.5959687} - m_textInfo: - textComponent: {fileID: 7123777298737056029} - characterCount: 24 - spriteCount: 0 - spaceCount: 3 - wordCount: 4 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 2441041722966011573} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &6181430032993640778 CanvasRenderer: m_ObjectHideFlags: 0 @@ -2910,6 +2885,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -2921,6 +2897,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -2989,6 +2966,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3000,6 +2978,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3119,6 +3098,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3130,6 +3110,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3200,6 +3181,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3211,6 +3193,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3321,6 +3304,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3332,6 +3316,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3424,6 +3409,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3435,6 +3421,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3545,6 +3532,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3556,6 +3544,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3636,6 +3625,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3647,6 +3637,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3735,6 +3726,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3746,6 +3738,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3848,6 +3841,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3859,6 +3853,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -3970,6 +3965,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -3981,6 +3977,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4140,6 +4137,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4151,6 +4149,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4270,6 +4269,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4281,6 +4281,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4347,6 +4348,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4358,6 +4360,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4428,6 +4431,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4439,6 +4443,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4559,6 +4564,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4570,6 +4576,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4628,6 +4635,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4639,6 +4647,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4727,6 +4736,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4738,6 +4748,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4804,6 +4815,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4815,6 +4827,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -4885,6 +4898,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -4896,6 +4910,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5007,6 +5022,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5018,6 +5034,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5106,6 +5123,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5117,6 +5135,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5187,6 +5206,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5198,6 +5218,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5309,6 +5330,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5320,6 +5342,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5414,6 +5437,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5425,6 +5449,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5544,6 +5569,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5555,6 +5581,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5681,6 +5708,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5692,6 +5720,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5772,6 +5801,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5783,6 +5813,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5871,6 +5902,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5882,6 +5914,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -5948,6 +5981,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -5959,6 +5993,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6017,6 +6052,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6028,6 +6064,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6116,6 +6153,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6127,6 +6165,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6193,6 +6232,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6204,6 +6244,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6262,6 +6303,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6273,6 +6315,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6361,6 +6404,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6372,6 +6416,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6464,6 +6509,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6475,6 +6521,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6569,6 +6616,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6580,6 +6628,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6691,6 +6740,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6702,6 +6752,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6828,6 +6879,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6839,6 +6891,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -6949,6 +7002,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -6960,6 +7014,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7052,6 +7107,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7063,6 +7119,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7222,6 +7279,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7233,6 +7291,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7291,6 +7350,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7302,6 +7362,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7390,6 +7451,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7401,6 +7463,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7501,6 +7564,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7512,6 +7576,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7570,6 +7635,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7581,6 +7647,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7669,6 +7736,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7680,6 +7748,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7751,6 +7820,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7762,6 +7832,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -7872,6 +7943,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -7883,6 +7955,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8006,6 +8079,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8017,6 +8091,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8135,6 +8210,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8146,6 +8222,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8328,6 +8405,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8339,6 +8417,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8409,6 +8488,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8420,6 +8500,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8530,6 +8611,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8541,6 +8623,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8621,6 +8704,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8632,6 +8716,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8720,6 +8805,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8731,6 +8817,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -8789,6 +8876,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -8800,6 +8888,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9006,6 +9095,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9017,6 +9107,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9105,6 +9196,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9116,6 +9208,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9174,6 +9267,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9185,6 +9279,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9275,6 +9370,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9286,6 +9382,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9352,6 +9449,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9363,6 +9461,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9453,6 +9552,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9464,6 +9564,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9486,7 +9587,7 @@ TextMesh: m_GameObject: {fileID: 6903257791141915214} m_Text: 'Sign in to a Google account to access - Poly, Drive, and YouTube support.' + Drive and YouTube support.' m_OffsetZ: 0 m_CharacterSize: 0.02 m_LineSpacing: 1 @@ -9554,6 +9655,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9565,6 +9667,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9631,6 +9734,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9642,6 +9746,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9712,6 +9817,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9723,6 +9829,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9874,6 +9981,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9885,6 +9993,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -9955,6 +10064,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -9966,6 +10076,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10085,6 +10196,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10096,6 +10208,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10199,6 +10312,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10210,6 +10324,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10330,6 +10445,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10341,6 +10457,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10498,6 +10615,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10509,6 +10627,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10628,6 +10747,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10639,6 +10759,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10740,6 +10861,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10751,6 +10873,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10819,6 +10942,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10830,6 +10954,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -10888,6 +11013,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -10899,6 +11025,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11019,6 +11146,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11030,6 +11158,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11088,6 +11217,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11099,6 +11229,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11187,6 +11318,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11198,6 +11330,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11256,6 +11389,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11267,6 +11401,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11388,6 +11523,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11399,6 +11535,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11465,6 +11602,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11476,6 +11614,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11542,6 +11681,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11553,6 +11693,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11611,6 +11752,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 0 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11622,6 +11764,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 0 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 @@ -11710,6 +11853,7 @@ MeshRenderer: m_MotionVectors: 1 m_LightProbeUsage: 1 m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 m_RenderingLayerMask: 1 m_RendererPriority: 0 m_Materials: @@ -11721,6 +11865,7 @@ MeshRenderer: m_ProbeAnchor: {fileID: 0} m_LightProbeVolumeOverride: {fileID: 0} m_ScaleInLightmap: 1 + m_ReceiveGI: 1 m_PreserveUVs: 1 m_IgnoreNormalsForChartDetection: 0 m_ImportantGI: 0 diff --git a/Assets/Prefabs/PopUps/PopUpWindow_ColorOptions.prefab b/Assets/Prefabs/PopUps/PopUpWindow_ColorOptions.prefab new file mode 100644 index 0000000000..102a9c19a3 --- /dev/null +++ b/Assets/Prefabs/PopUps/PopUpWindow_ColorOptions.prefab @@ -0,0 +1,844 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &197348 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 461372} + - component: {fileID: 6590698} + - component: {fileID: 11477574} + - component: {fileID: 114378360279916084} + m_Layer: 16 + m_Name: PopUpWindow_ColorOptions + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &461372 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 197348} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.42369986, y: 9.294, z: 0.0048000813} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 4000013863059372} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!65 &6590698 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 197348} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1.45, y: 1.26, z: 0.01} + m_Center: {x: 0, y: 0, z: -0.0125} +--- !u!114 &11477574 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 197348} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac3bbf6d1bcd3034ab32fd1367d2a2d3, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Background: {fileID: 1000011805813252} + m_TopBorder: {fileID: 1000011506748792} + m_BottomBorder: {fileID: 1000011506748792} + m_WindowText: {fileID: 102250525659386834} + m_WindowSubText: {fileID: 0} + m_CharacterWidth: 0.175 + m_SubtitleCharacterWidth: 0.05625 + m_ButtonWidth: 0.6 + m_BaseButtonOffset: {x: 0, y: 0, z: 0} + m_ReticleBounds: {x: 1.65, y: 2, z: -0.35} + m_PopUpForwardOffset: -0.5 + m_AutoPlaceButtons: [] + m_TransitionDuration: 0.1 + m_OpenDelay: 0 + m_Persistent: 0 + m_AudioOnOpen: 1 + m_BlockUndoRedo: 0 + m_IsLongPressPopUp: 0 + m_OrderedPageButtons: [] + m_PrevButton: {fileID: 0} + m_NextButton: {fileID: 0} + m_ColorTransitionDuration: 0.2 +--- !u!114 &114378360279916084 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 197348} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 739d5b1996234d64992a2ae60c3723e9, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &1000011506748792 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4000011863039138} + - component: {fileID: 33000013223101232} + - component: {fileID: 23000011128244564} + m_Layer: 16 + m_Name: PopupBorder + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4000011863039138 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000011506748792} + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067} + m_LocalPosition: {x: -0, y: 0, z: 0} + m_LocalScale: {x: 100, y: 100, z: 100} + m_Children: [] + m_Father: {fileID: 4000014139754862} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &33000013223101232 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000011506748792} + m_Mesh: {fileID: 4300000, guid: e16d00464172b7048aa398008f83907d, type: 3} +--- !u!23 &23000011128244564 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000011506748792} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 77dd4ff8b1158a84397aba783cd0af05, 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: 0 + 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 +--- !u!1 &1000011805813252 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4000011965635686} + - component: {fileID: 33000010302420914} + - component: {fileID: 23000013678226396} + m_Layer: 16 + m_Name: PopupBg + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4000011965635686 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000011805813252} + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067} + m_LocalPosition: {x: -0, y: 0, z: 0} + m_LocalScale: {x: 100, y: 100, z: 100} + m_Children: [] + m_Father: {fileID: 4000014139754862} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &33000010302420914 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000011805813252} + m_Mesh: {fileID: 4300002, guid: e16d00464172b7048aa398008f83907d, type: 3} +--- !u!23 &23000013678226396 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000011805813252} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: db0305ff9081c3b448ac79e85d26e5d4, 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: 0 + 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 +--- !u!1 &1000013661770288 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4000013863059372} + m_Layer: 16 + m_Name: Mesh + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4000013863059372 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000013661770288} + 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: + - {fileID: 4408143530714042} + - {fileID: 7625513260310874408} + - {fileID: 672854963316639820} + - {fileID: 4000014139754862} + m_Father: {fileID: 461372} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1000013872528560 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4000014139754862} + m_Layer: 16 + m_Name: MorePopupMesh + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4000014139754862 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000013872528560} + 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: + - {fileID: 4000011965635686} + - {fileID: 4000011863039138} + m_Father: {fileID: 4000013863059372} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1193448101192846 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4408143530714042} + - component: {fileID: 23387439866973640} + - component: {fileID: 102250525659386834} + m_Layer: 16 + m_Name: TextLine + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4408143530714042 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1193448101192846} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.6693, y: 0.601, z: -0.002} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 4000013863059372} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &23387439866973640 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1193448101192846} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 0 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 543b312efaeb6aa4aa25a9e07e815953, 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: 0 + 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 +--- !u!102 &102250525659386834 +TextMesh: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1193448101192846} + m_Text: Description + m_OffsetZ: 0 + m_CharacterSize: 0.03 + m_LineSpacing: 1 + m_Anchor: 0 + m_Alignment: 0 + m_TabSize: 4 + m_FontSize: 64 + m_FontStyle: 0 + m_RichText: 1 + m_Font: {fileID: 12800000, guid: aa94fec06c672f74d86409a6979db921, type: 3} + m_Color: + serializedVersion: 2 + rgba: 4294967295 +--- !u!1 &6169776631466976002 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7625513260310874408} + m_Layer: 16 + m_Name: Sliders + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7625513260310874408 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6169776631466976002} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.9, y: 0.9, z: 0.9} + m_Children: + - {fileID: 7275121953736061568} + - {fileID: 8620010356955259900} + - {fileID: 1367974747965274959} + m_Father: {fileID: 4000013863059372} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &672854963317086212 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 4000013863059372} + m_Modifications: + - target: {fileID: 148172, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_Name + value: PopUpButton_Confirm + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalScale.x + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalScale.y + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalScale.z + value: 0.2 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalPosition.x + value: 0.444 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalPosition.y + value: -0.619 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalPosition.z + value: -0.02 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 11488472, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} + propertyPath: m_ButtonTexture + value: + objectReference: {fileID: 2800000, guid: 4ca620df5430af448aaf4f3ff20ad5c4, type: 3} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, type: 3} +--- !u!4 &672854963316639820 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 479304, guid: a5c1c72b25e95a34fadfdb03c9ab2b1b, + type: 3} + m_PrefabInstance: {fileID: 672854963317086212} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &2267239116643488633 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 7625513260310874408} + m_Modifications: + - target: {fileID: 842595788728861292, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: JitterProperty + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 842595788728861292, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_DescriptionText + value: Brightness + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_RootOrder + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalScale.x + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalScale.y + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalScale.z + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.y + value: -0.33700085 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.z + value: -0.03 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814379478, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_Name + value: JitterSlider V + objectReference: {fileID: 0} + - target: {fileID: 975834435824073636, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: JitterProperty + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 975834435824073636, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_DescriptionText + value: Brightness + objectReference: {fileID: 0} + - target: {fileID: 975834435824077772, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_Icon + value: + objectReference: {fileID: 2800000, guid: ab8b9a0b96b6cb74ca1e518f3c56b425, type: 3} + - target: {fileID: 975834435824087934, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_Icon + value: + objectReference: {fileID: 2800000, guid: f74f6eac3e3e3c640b1a343ec46ba2dd, type: 3} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 3930ecf208aacf0498f0c2b545249067, type: 3} +--- !u!4 &1367974747965274959 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + m_PrefabInstance: {fileID: 2267239116643488633} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &7601144751179307702 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 7625513260310874408} + m_Modifications: + - target: {fileID: 842595788728861292, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_DescriptionText + value: Hue + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.y + value: 0.20299911 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.z + value: -0.03 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814379478, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_Name + value: JitterSlider H + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 3930ecf208aacf0498f0c2b545249067, type: 3} +--- !u!4 &7275121953736061568 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + m_PrefabInstance: {fileID: 7601144751179307702} + m_PrefabAsset: {fileID: 0} +--- !u!1001 &8803043587056651210 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 7625513260310874408} + m_Modifications: + - target: {fileID: 842595788728861292, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: JitterProperty + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 842595788728861292, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_DescriptionText + value: Saturation + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalScale.x + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalScale.y + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalScale.z + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.y + value: -0.067 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalPosition.z + value: -0.03 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 975834435814379478, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_Name + value: JitterSlider S + objectReference: {fileID: 0} + - target: {fileID: 975834435824073636, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: JitterProperty + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 975834435824073636, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_DescriptionText + value: Saturation + objectReference: {fileID: 0} + - target: {fileID: 975834435824077772, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_Icon + value: + objectReference: {fileID: 2800000, guid: ab8b9a0b96b6cb74ca1e518f3c56b425, type: 3} + - target: {fileID: 975834435824087934, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + propertyPath: m_Icon + value: + objectReference: {fileID: 2800000, guid: f74f6eac3e3e3c640b1a343ec46ba2dd, type: 3} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 3930ecf208aacf0498f0c2b545249067, type: 3} +--- !u!4 &8620010356955259900 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 975834435814123574, guid: 3930ecf208aacf0498f0c2b545249067, + type: 3} + m_PrefabInstance: {fileID: 8803043587056651210} + m_PrefabAsset: {fileID: 0} diff --git a/Assets/Prefabs/PopUps/PopUpWindow_ColorOptions.prefab.meta b/Assets/Prefabs/PopUps/PopUpWindow_ColorOptions.prefab.meta new file mode 100644 index 0000000000..5c2d64dc96 --- /dev/null +++ b/Assets/Prefabs/PopUps/PopUpWindow_ColorOptions.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: d239309283424304dbea4303c5b675ba +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Stencils/StencilPlane.prefab b/Assets/Prefabs/Stencils/StencilPlane.prefab new file mode 100644 index 0000000000..140ba62a5c --- /dev/null +++ b/Assets/Prefabs/Stencils/StencilPlane.prefab @@ -0,0 +1,197 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &1000012669655704 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4000013352147010} + - component: {fileID: 7435273578356639229} + m_Layer: 10 + m_Name: StencilPlane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4000013352147010 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000012669655704} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: -3.77} + m_LocalScale: {x: 2, y: 2, z: 2} + m_Children: + - {fileID: 6480113219330938619} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &7435273578356639229 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1000012669655704} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a4159ac323cbcf342a438d0d47995138, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ShowDuration: 0.2 + m_GrabDistance: 0.2 + m_CollisionRadius: 50 + m_AllowTwoHandGrab: 1 + m_DestroyOnHide: 0 + m_AllowHideWithToss: 1 + m_DisableDrift: 1 + m_RecordMovements: 1 + m_AllowSnapping: 1 + m_SnapDisabledDelay: 0.2 + m_AllowPinning: 1 + m_AllowDormancy: 1 + m_TossDuration: 0.25 + m_TintableMeshes: + - {fileID: 93373910755683067} + m_SpawnPlacementOffset: {x: 0, y: 0, z: 0} + m_IntroAnimSpinAmount: 360 + m_BoxCollider: {fileID: 6966017335759496624} + m_Mesh: {fileID: 4833453055534446534} + m_HighlightMeshXfs: [] + m_ValidSnapRotationStickyAngle: 65 + m_SnapGhostMaterial: {fileID: 2100000, guid: 43172d360a2f0f44798d94e9c440e24b, type: 2} + m_MinSize_CS: 0.1 + m_MaxSize_CS: 200 + m_TintColor: {r: 1, g: 1, b: 1, a: 1} + m_StencilGrabDistance: 1 + m_PointerLiftSlope: 0.0002 +--- !u!1 &5410677282364980869 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4833453055534446534} + - component: {fileID: 176636714204928826} + - component: {fileID: 93373910755683067} + m_Layer: 10 + m_Name: Mesh + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4833453055534446534 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5410677282364980869} + 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_Father: {fileID: 6480113219330938619} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &176636714204928826 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5410677282364980869} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &93373910755683067 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5410677282364980869} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 81bf21b81236bc345bdedb23962442bf, 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: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + 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 +--- !u!1 &5872692503324613453 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6480113219330938619} + - component: {fileID: 6966017335759496624} + m_Layer: 10 + m_Name: StencilCubeCollider + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6480113219330938619 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5872692503324613453} + 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: + - {fileID: 4833453055534446534} + m_Father: {fileID: 4000013352147010} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!65 &6966017335759496624 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5872692503324613453} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1.1, y: 1.1, z: 0.5} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Prefabs/Stencils/StencilPlane.prefab.meta b/Assets/Prefabs/Stencils/StencilPlane.prefab.meta new file mode 100644 index 0000000000..1015f194c3 --- /dev/null +++ b/Assets/Prefabs/Stencils/StencilPlane.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5f54d1338beef174ea5bd7dbe2262304 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Icons/guide_plane.png b/Assets/Resources/Icons/guide_plane.png new file mode 100644 index 0000000000..fecec13e67 Binary files /dev/null and b/Assets/Resources/Icons/guide_plane.png differ diff --git a/Assets/Resources/Icons/guide_plane.png.meta b/Assets/Resources/Icons/guide_plane.png.meta new file mode 100644 index 0000000000..0dfd88a0a5 --- /dev/null +++ b/Assets/Resources/Icons/guide_plane.png.meta @@ -0,0 +1,128 @@ +fileFormatVersion: 2 +guid: d5133db99d7b8724b9a844f44753ee83 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + 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: 1 + streamingMipmaps: 0 + streamingMipmapsPriority: 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 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 128 + 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: 128 + 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: 128 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 128 + 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: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Icons/pointersnap.png b/Assets/Resources/Icons/pointersnap.png new file mode 100644 index 0000000000..05cb9ea830 Binary files /dev/null and b/Assets/Resources/Icons/pointersnap.png differ diff --git a/Assets/Resources/Icons/pointersnap.png.meta b/Assets/Resources/Icons/pointersnap.png.meta new file mode 100644 index 0000000000..ce419978dd --- /dev/null +++ b/Assets/Resources/Icons/pointersnap.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 8e733c6b71b90e94c8b99c3c58de9b65 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + 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 + 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 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Icons/pointersnap_space.png b/Assets/Resources/Icons/pointersnap_space.png new file mode 100644 index 0000000000..27d00ac333 Binary files /dev/null and b/Assets/Resources/Icons/pointersnap_space.png differ diff --git a/Assets/Resources/Icons/pointersnap_space.png.meta b/Assets/Resources/Icons/pointersnap_space.png.meta new file mode 100644 index 0000000000..cf6e8a0474 --- /dev/null +++ b/Assets/Resources/Icons/pointersnap_space.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: a68fb700064025245af41e5c5c784e6c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + 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 + 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 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 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 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index c22f1ddc86..3b62a5222b 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -667,13 +667,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 3 m_fontSizeBase: 3 m_fontWeight: 400 @@ -681,6 +680,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 257 m_characterSpacing: 0 m_wordSpacing: 0 @@ -691,10 +692,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -702,42 +701,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 0} - characterCount: 12 - spriteCount: 0 - spaceCount: 2 - wordCount: 3 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 12781057} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &12781055 CanvasRenderer: m_ObjectHideFlags: 2 @@ -1258,7 +1238,6 @@ GameObject: m_Component: - component: {fileID: 815137833} - component: {fileID: 53960734} - - component: {fileID: 53960733} - component: {fileID: 53960732} - component: {fileID: 53960731} m_Layer: 18 @@ -1319,13 +1298,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.93 m_fontSizeBase: 1.93 m_fontWeight: 400 @@ -1333,7 +1311,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 257 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 @@ -1343,10 +1323,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -1354,51 +1332,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: -1.8046212, w: -0.33301544} - m_textInfo: - textComponent: {fileID: 53960732} - characterCount: 18 - spriteCount: 0 - spaceCount: 4 - wordCount: 4 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 53960734} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 ---- !u!33 &53960733 -MeshFilter: - m_ObjectHideFlags: 2 - m_CorrespondingSourceObject: {fileID: 3316878, guid: f636b2bdcf1c7f5498e324d362ac1ba8, - type: 3} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 53960730} - m_Mesh: {fileID: 0} + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!23 &53960734 MeshRenderer: m_ObjectHideFlags: 0 @@ -2693,13 +2643,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 2 m_fontSizeBase: 2 m_fontWeight: 400 @@ -2707,6 +2656,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 513 m_characterSpacing: 0 m_wordSpacing: 0 @@ -2717,10 +2668,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -2728,42 +2677,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 129869458} - characterCount: 4 - spriteCount: 0 - spaceCount: 1 - wordCount: 2 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 103787546} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1 &130210064 GameObject: m_ObjectHideFlags: 0 @@ -2826,13 +2756,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 3 m_fontSizeBase: 3 m_fontWeight: 400 @@ -2840,6 +2769,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 257 m_characterSpacing: 0 m_wordSpacing: 0 @@ -2850,10 +2781,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -2861,42 +2790,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 0} - characterCount: 8 - spriteCount: 0 - spaceCount: 0 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 130210068} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &130210066 CanvasRenderer: m_ObjectHideFlags: 2 @@ -5400,13 +5310,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 3 m_fontSizeBase: 3 m_fontWeight: 400 @@ -5414,6 +5323,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 257 m_characterSpacing: 0 m_wordSpacing: 0 @@ -5424,10 +5335,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -5435,42 +5344,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 0} - characterCount: 9 - spriteCount: 0 - spaceCount: 1 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 271027829} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &271027827 CanvasRenderer: m_ObjectHideFlags: 2 @@ -7234,13 +7124,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.5 m_fontSizeBase: 1.5 m_fontWeight: 400 @@ -7248,6 +7137,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 32 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 1025 m_characterSpacing: 0 m_wordSpacing: 0 @@ -7258,10 +7149,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -7269,42 +7158,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: -0.013912916, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 413759583} - characterCount: 20 - spriteCount: 0 - spaceCount: 2 - wordCount: 3 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 512959152} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1001 &420987293 PrefabInstance: m_ObjectHideFlags: 0 @@ -8245,13 +8115,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.5 m_fontSizeBase: 1.5 m_fontWeight: 400 @@ -8259,6 +8128,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 32 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 1026 m_characterSpacing: 0 m_wordSpacing: 0 @@ -8269,10 +8140,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -8280,42 +8149,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: -0.013912916, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 0} - characterCount: 12 - spriteCount: 0 - spaceCount: 0 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 1843353005} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1 &512959151 GameObject: m_ObjectHideFlags: 0 @@ -8623,13 +8473,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.5 m_fontSizeBase: 1.5 m_fontWeight: 400 @@ -8637,6 +8486,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 257 m_characterSpacing: 0 m_wordSpacing: 0 @@ -8647,10 +8498,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -8658,42 +8507,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0.3169704, y: 0, z: -0.43391293, w: 0} - m_textInfo: - textComponent: {fileID: 581738634} - characterCount: 0 - spriteCount: 0 - spaceCount: 0 - wordCount: 0 - linkCount: 0 - lineCount: 0 - pageCount: 0 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 1877187485} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1001 &584147934 PrefabInstance: m_ObjectHideFlags: 0 @@ -8996,7 +8826,6 @@ GameObject: m_Component: - component: {fileID: 586145411} - component: {fileID: 1454494319} - - component: {fileID: 613080584} - component: {fileID: 1498237885} - component: {fileID: 613080583} m_Layer: 18 @@ -9014,15 +8843,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 613080582} m_CullTransparentMesh: 0 ---- !u!33 &613080584 -MeshFilter: - m_ObjectHideFlags: 2 - m_CorrespondingSourceObject: {fileID: 3316878, guid: f636b2bdcf1c7f5498e324d362ac1ba8, - type: 3} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 613080582} - m_Mesh: {fileID: 0} --- !u!1 &617891837 GameObject: m_ObjectHideFlags: 0 @@ -11804,13 +11624,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.4 m_fontSizeBase: 1.4 m_fontWeight: 400 @@ -11818,6 +11637,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 257 m_characterSpacing: 0 m_wordSpacing: 0 @@ -11828,10 +11649,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -11839,42 +11658,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 0} - characterCount: 15 - spriteCount: 0 - spaceCount: 2 - wordCount: 3 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 825726041} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!222 &825726039 CanvasRenderer: m_ObjectHideFlags: 2 @@ -15920,13 +15720,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 36 m_fontSizeBase: 36 m_fontWeight: 400 @@ -15934,6 +15733,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 1028 m_characterSpacing: 0 m_wordSpacing: 0 @@ -15944,10 +15745,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -15955,40 +15754,18 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 1 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 1295357952} - characterCount: 3 - spriteCount: 0 - spaceCount: 0 - wordCount: 2 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!222 &1295357953 @@ -16278,7 +16055,6 @@ GameObject: m_Component: - component: {fileID: 83051504} - component: {fileID: 1311996754} - - component: {fileID: 1311996753} - component: {fileID: 1311996752} - component: {fileID: 1311996751} m_Layer: 18 @@ -16339,13 +16115,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.93 m_fontSizeBase: 1.93 m_fontWeight: 400 @@ -16353,7 +16128,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 257 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 @@ -16363,10 +16140,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -16374,51 +16149,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 1311996752} - characterCount: 18 - spriteCount: 0 - spaceCount: 4 - wordCount: 4 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 1311996754} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 ---- !u!33 &1311996753 -MeshFilter: - m_ObjectHideFlags: 2 - m_CorrespondingSourceObject: {fileID: 3316878, guid: f636b2bdcf1c7f5498e324d362ac1ba8, - type: 3} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1311996750} - m_Mesh: {fileID: 0} + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!23 &1311996754 MeshRenderer: m_ObjectHideFlags: 0 @@ -18903,13 +18650,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 5.2 m_fontSizeBase: 5.2 m_fontWeight: 400 @@ -18917,7 +18663,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 257 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 @@ -18927,10 +18675,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -18938,42 +18684,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: -2.382012, w: -0.6436424} - m_textInfo: - textComponent: {fileID: 1498237885} - characterCount: 10 - spriteCount: 0 - spaceCount: 1 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 1454494319} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1 &1498770772 GameObject: m_ObjectHideFlags: 0 @@ -19657,13 +19384,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1 m_fontSizeBase: 1 m_fontWeight: 400 @@ -19671,6 +19397,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 33 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 1025 m_characterSpacing: 0 m_wordSpacing: 0 @@ -19681,10 +19409,8 @@ MonoBehaviour: m_enableWordWrapping: 0 m_wordWrappingRatios: 0.4 m_overflowMode: 3 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -19692,42 +19418,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: -0.013912916, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 1577979162} - characterCount: 0 - spriteCount: 0 - spaceCount: 0 - wordCount: 0 - linkCount: 0 - lineCount: 0 - pageCount: 0 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 745882611} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1 &1578975888 GameObject: m_ObjectHideFlags: 0 @@ -20620,13 +20327,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 2.5 m_fontSizeBase: 2.5 m_fontWeight: 400 @@ -20634,6 +20340,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 257 m_characterSpacing: 0 m_wordSpacing: 0 @@ -20644,10 +20352,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -20655,42 +20361,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 0} - characterCount: 5 - spriteCount: 0 - spaceCount: 0 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 1277487074} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1 &1637135394 GameObject: m_ObjectHideFlags: 0 @@ -27975,6 +27662,9 @@ MonoBehaviour: - m_Type: 8 m_StencilPrefab: {fileID: 114000010304738242, guid: 00dc61f9b313bf3489063b76b1bc9a58, type: 3} + - m_Type: 0 + m_StencilPrefab: {fileID: 7435273578356639229, guid: 5f54d1338beef174ea5bd7dbe2262304, + type: 3} m_StencilAttractDist: 0.5 m_StencilAttachHysteresis: 0.1 m_StencilLayerName: StencilObject @@ -28273,13 +27963,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 5.2 m_fontSizeBase: 5.2 m_fontWeight: 400 @@ -28287,7 +27976,9 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 - m_textAlignment: 257 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 + m_textAlignment: 65535 m_characterSpacing: 0 m_wordSpacing: 0 m_lineSpacing: 0 @@ -28297,10 +27988,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -28308,42 +27997,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 1808834036} - characterCount: 7 - spriteCount: 0 - spaceCount: 1 - wordCount: 1 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 448780583} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1 &1810551365 stripped GameObject: m_CorrespondingSourceObject: {fileID: 100000, guid: d6b0c4fb3312a2b478110813b1ed3d69, @@ -29552,7 +29222,6 @@ GameObject: m_Component: - component: {fileID: 1808834035} - component: {fileID: 448780583} - - component: {fileID: 1904300009} - component: {fileID: 1808834036} - component: {fileID: 1904300008} m_Layer: 18 @@ -29570,15 +29239,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1904300007} m_CullTransparentMesh: 0 ---- !u!33 &1904300009 -MeshFilter: - m_ObjectHideFlags: 2 - m_CorrespondingSourceObject: {fileID: 3316878, guid: f636b2bdcf1c7f5498e324d362ac1ba8, - type: 3} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1904300007} - m_Mesh: {fileID: 0} --- !u!1 &1910856519 GameObject: m_ObjectHideFlags: 0 @@ -29947,6 +29607,52 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 4444ce35d262aa648ad0c425a559b931, type: 3} m_Name: m_EditorClassIdentifier: + currentOverlayType: 2 + isDynamic: 0 + isProtectedContent: 0 + srcRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + srcRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + invertTextureRects: 0 + overrideTextureRectMatrix: 0 + overridePerLayerColorScaleAndOffset: 0 + colorScale: {x: 1, y: 1, z: 1, w: 1} + colorOffset: {x: 0, y: 0, z: 0, w: 0} + useExpensiveSuperSample: 0 + hidden: 0 + isExternalSurface: 0 + externalSurfaceWidth: 0 + externalSurfaceHeight: 0 + compositionDepth: 0 + noDepthBufferTesting: 0 + layerTextureFormat: 0 + currentOverlayShape: 0 + textures: + - {fileID: 0} + - {fileID: 0} + isAlphaPremultiplied: 0 + _previewInEditor: 0 --- !u!114 &1915877483 MonoBehaviour: m_ObjectHideFlags: 0 @@ -29959,6 +29665,52 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 4444ce35d262aa648ad0c425a559b931, type: 3} m_Name: m_EditorClassIdentifier: + currentOverlayType: 2 + isDynamic: 0 + isProtectedContent: 0 + srcRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + srcRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + invertTextureRects: 0 + overrideTextureRectMatrix: 0 + overridePerLayerColorScaleAndOffset: 0 + colorScale: {x: 1, y: 1, z: 1, w: 1} + colorOffset: {x: 0, y: 0, z: 0, w: 0} + useExpensiveSuperSample: 0 + hidden: 0 + isExternalSurface: 0 + externalSurfaceWidth: 0 + externalSurfaceHeight: 0 + compositionDepth: 0 + noDepthBufferTesting: 0 + layerTextureFormat: 0 + currentOverlayShape: 0 + textures: + - {fileID: 0} + - {fileID: 0} + isAlphaPremultiplied: 0 + _previewInEditor: 0 --- !u!114 &1915877484 MonoBehaviour: m_ObjectHideFlags: 0 @@ -29971,6 +29723,52 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 4444ce35d262aa648ad0c425a559b931, type: 3} m_Name: m_EditorClassIdentifier: + currentOverlayType: 2 + isDynamic: 0 + isProtectedContent: 0 + srcRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + srcRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + invertTextureRects: 0 + overrideTextureRectMatrix: 0 + overridePerLayerColorScaleAndOffset: 0 + colorScale: {x: 1, y: 1, z: 1, w: 1} + colorOffset: {x: 0, y: 0, z: 0, w: 0} + useExpensiveSuperSample: 0 + hidden: 0 + isExternalSurface: 0 + externalSurfaceWidth: 0 + externalSurfaceHeight: 0 + compositionDepth: 0 + noDepthBufferTesting: 0 + layerTextureFormat: 0 + currentOverlayShape: 0 + textures: + - {fileID: 0} + - {fileID: 0} + isAlphaPremultiplied: 0 + _previewInEditor: 0 --- !u!4 &1915877485 Transform: m_ObjectHideFlags: 0 @@ -29997,6 +29795,52 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 4444ce35d262aa648ad0c425a559b931, type: 3} m_Name: m_EditorClassIdentifier: + currentOverlayType: 2 + isDynamic: 0 + isProtectedContent: 0 + srcRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + srcRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + invertTextureRects: 0 + overrideTextureRectMatrix: 0 + overridePerLayerColorScaleAndOffset: 0 + colorScale: {x: 1, y: 1, z: 1, w: 1} + colorOffset: {x: 0, y: 0, z: 0, w: 0} + useExpensiveSuperSample: 0 + hidden: 0 + isExternalSurface: 0 + externalSurfaceWidth: 0 + externalSurfaceHeight: 0 + compositionDepth: 0 + noDepthBufferTesting: 0 + layerTextureFormat: 0 + currentOverlayShape: 0 + textures: + - {fileID: 0} + - {fileID: 0} + isAlphaPremultiplied: 0 + _previewInEditor: 0 --- !u!114 &1915877487 MonoBehaviour: m_ObjectHideFlags: 0 @@ -30009,6 +29853,52 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 4444ce35d262aa648ad0c425a559b931, type: 3} m_Name: m_EditorClassIdentifier: + currentOverlayType: 2 + isDynamic: 0 + isProtectedContent: 0 + srcRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + srcRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + invertTextureRects: 0 + overrideTextureRectMatrix: 0 + overridePerLayerColorScaleAndOffset: 0 + colorScale: {x: 1, y: 1, z: 1, w: 1} + colorOffset: {x: 0, y: 0, z: 0, w: 0} + useExpensiveSuperSample: 0 + hidden: 0 + isExternalSurface: 0 + externalSurfaceWidth: 0 + externalSurfaceHeight: 0 + compositionDepth: 0 + noDepthBufferTesting: 0 + layerTextureFormat: 0 + currentOverlayShape: 0 + textures: + - {fileID: 0} + - {fileID: 0} + isAlphaPremultiplied: 0 + _previewInEditor: 0 --- !u!114 &1915877488 MonoBehaviour: m_ObjectHideFlags: 0 @@ -30021,6 +29911,52 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 4444ce35d262aa648ad0c425a559b931, type: 3} m_Name: m_EditorClassIdentifier: + currentOverlayType: 2 + isDynamic: 0 + isProtectedContent: 0 + srcRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + srcRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectLeft: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + destRectRight: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + invertTextureRects: 0 + overrideTextureRectMatrix: 0 + overridePerLayerColorScaleAndOffset: 0 + colorScale: {x: 1, y: 1, z: 1, w: 1} + colorOffset: {x: 0, y: 0, z: 0, w: 0} + useExpensiveSuperSample: 0 + hidden: 0 + isExternalSurface: 0 + externalSurfaceWidth: 0 + externalSurfaceHeight: 0 + compositionDepth: 0 + noDepthBufferTesting: 0 + layerTextureFormat: 0 + currentOverlayShape: 0 + textures: + - {fileID: 0} + - {fileID: 0} + isAlphaPremultiplied: 0 + _previewInEditor: 0 --- !u!1001 &1916224247 PrefabInstance: m_ObjectHideFlags: 0 @@ -31198,13 +31134,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 0.75 m_fontSizeBase: 0.75 m_fontWeight: 400 @@ -31212,6 +31147,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 0 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 257 m_characterSpacing: 0 m_wordSpacing: 0 @@ -31222,10 +31159,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: 0 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -31233,42 +31168,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0.3169704, y: 0, z: -0.4266512, w: 0} - m_textInfo: - textComponent: {fileID: 2040347685} - characterCount: 0 - spriteCount: 0 - spaceCount: 0 - wordCount: 0 - linkCount: 0 - lineCount: 0 - pageCount: 0 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 261597284} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1001 &2052658242 PrefabInstance: m_ObjectHideFlags: 0 @@ -32160,13 +32076,12 @@ MonoBehaviour: m_fontColorGradientPreset: {fileID: 0} m_spriteAsset: {fileID: 0} m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: 0 m_overrideHtmlColors: 0 m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_outlineColor: - serializedVersion: 2 - rgba: 4278190080 m_fontSize: 1.25 m_fontSizeBase: 1.25 m_fontWeight: 400 @@ -32174,6 +32089,8 @@ MonoBehaviour: m_fontSizeMin: 18 m_fontSizeMax: 72 m_fontStyle: 1 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 256 m_textAlignment: 1026 m_characterSpacing: 5.45 m_wordSpacing: 0 @@ -32184,10 +32101,8 @@ MonoBehaviour: m_enableWordWrapping: 1 m_wordWrappingRatios: 0.4 m_overflowMode: 0 - m_firstOverflowCharacterIndex: -1 m_linkedTextComponent: {fileID: 0} - m_isLinkedTextComponent: 0 - m_isTextTruncated: 0 + parentLinkedComponent: {fileID: 0} m_enableKerning: 1 m_enableExtraPadding: 0 checkPaddingRequired: 0 @@ -32195,42 +32110,23 @@ MonoBehaviour: m_parseCtrlCharacters: 1 m_isOrthographic: 0 m_isCullingEnabled: 0 - m_ignoreRectMaskCulling: 0 - m_ignoreCulling: 1 m_horizontalMapping: 0 m_verticalMapping: 0 m_uvLineOffset: 0 m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 m_VertexBufferAutoSizeReduction: 1 - m_firstVisibleCharacter: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 m_margin: {x: 0, y: 0, z: 0, w: 0} - m_textInfo: - textComponent: {fileID: 2129205351} - characterCount: 7 - spriteCount: 0 - spaceCount: 0 - wordCount: 3 - linkCount: 0 - lineCount: 1 - pageCount: 1 - materialCount: 1 m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 - m_spriteAnimator: {fileID: 0} m_hasFontAssetChanged: 0 m_renderer: {fileID: 1317145831} - m_subTextObjects: - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} - - {fileID: 0} m_maskType: 0 + _SortingLayer: 0 + _SortingLayerID: 0 + _SortingOrder: 0 --- !u!1001 &2135251106 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/App.cs b/Assets/Scripts/App.cs index 23d9377ddb..a42a8cb682 100644 --- a/Assets/Scripts/App.cs +++ b/Assets/Scripts/App.cs @@ -45,11 +45,6 @@ public class App : MonoBehaviour public const float METERS_TO_UNITS = 10f; public const float UNITS_TO_METERS = .1f; - // These control the naming of various things related to the app. If you distribute your own - // build, you need to call is something other that 'Tilt Brush', as that if a Google trademark - - // see the BRANDING file for details. - // As a minimum, you should change kAppDisplayName. - // This is the name of the app, as displayed to the users running it. public const string kAppDisplayName = "Open Brush"; // The vendor name - used for naming android builds - shouldn't have spaces. diff --git a/Assets/Scripts/Commands/ModifyStencilAttractDistanceCommand.cs b/Assets/Scripts/Commands/ModifyStencilAttractDistanceCommand.cs new file mode 100644 index 0000000000..5c952e99fa --- /dev/null +++ b/Assets/Scripts/Commands/ModifyStencilAttractDistanceCommand.cs @@ -0,0 +1,54 @@ +// Copyright 2021 The Open Brush Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace TiltBrush +{ + public class ModifyStencilAttractDistanceCommand : BaseCommand + { + private readonly float m_StartDistance; + private float m_EndDistance; + private bool m_Final; + + public ModifyStencilAttractDistanceCommand(float endDistance, bool final = false, + BaseCommand parent = null) : base(parent) + { + m_StartDistance = WidgetManager.m_Instance.StencilAttractDist; + m_EndDistance = endDistance; + m_Final = final; + } + + public override bool NeedsSave => true; + + protected override void OnUndo() + { + WidgetManager.m_Instance.StencilAttractDist = m_StartDistance; + } + + protected override void OnRedo() + { + WidgetManager.m_Instance.StencilAttractDist = m_EndDistance; + } + + public override bool Merge(BaseCommand other) + { + if (base.Merge(other)) { return true; } + if (m_Final) { return false; } + ModifyStencilAttractDistanceCommand distanceCommand = other as ModifyStencilAttractDistanceCommand; + if (distanceCommand == null) { return false; } + m_EndDistance = distanceCommand.m_EndDistance; + m_Final = distanceCommand.m_Final; + return true; + } + } +} // namespace TiltBrush diff --git a/Assets/Scripts/Commands/ModifyStencilAttractDistanceCommand.cs.meta b/Assets/Scripts/Commands/ModifyStencilAttractDistanceCommand.cs.meta new file mode 100644 index 0000000000..5c750e710a --- /dev/null +++ b/Assets/Scripts/Commands/ModifyStencilAttractDistanceCommand.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 323e467e51a04cf2ad8c0645b5574710 +timeCreated: 1627927157 \ No newline at end of file diff --git a/Assets/Scripts/Config.cs b/Assets/Scripts/Config.cs index 75837e0d32..3c7c3d9e8e 100644 --- a/Assets/Scripts/Config.cs +++ b/Assets/Scripts/Config.cs @@ -141,7 +141,7 @@ private class UserConfigChange // is being used (Oculus VR, Steam's Open VR, Monoscopic, etc.). public VrHardware VrHardware { - // This is set lazily the first time VrHardware is accesssed. + // This is set lazily the first time VrHardware is accessed. get { if (m_VrHardware == TiltBrush.VrHardware.Unset) @@ -224,8 +224,11 @@ public bool IsMobileHardware // Only sadness will ensue if the user tries to set Override.MobileHardware=true // but their editor platform is still set to Windows. #if UNITY_EDITOR && UNITY_ANDROID - get { return Application.platform == RuntimePlatform.Android - || SpoofMobileHardware.MobileHardware; } + get + { + return Application.platform == RuntimePlatform.Android + || SpoofMobileHardware.MobileHardware; + } #else get { return Application.platform == RuntimePlatform.Android; } #endif diff --git a/Assets/Scripts/Entitlement/OculusAuth.cs b/Assets/Scripts/Entitlement/OculusAuth.cs index 8676e14505..3254fdb356 100644 --- a/Assets/Scripts/Entitlement/OculusAuth.cs +++ b/Assets/Scripts/Entitlement/OculusAuth.cs @@ -20,50 +20,61 @@ namespace TiltBrush public class OculusAuth : MonoBehaviour { #if OCULUS_SUPPORTED - private bool m_authenticated = false; - // The App ID is a public identifier for the Tilt Brush app on the Oculus platform. It is - // analogous to Apple's App ID, which shows up in URLs related to the app. - private string m_TiltBrushOculusRiftAppId => App.Config.OculusSecrets?.ClientId; - private string m_TiltBrushOculusMobileAppId => App.Config.OculusMobileSecrets?.ClientId; + private bool m_authenticated = false; + // The App ID is a public identifier for the Tilt Brush app on the Oculus platform. It is + // analogous to Apple's App ID, which shows up in URLs related to the app. + private string m_TiltBrushOculusRiftAppId => App.Config.OculusSecrets?.ClientId; + private string m_TiltBrushOculusMobileAppId => App.Config.OculusMobileSecrets?.ClientId; - private void Awake() { - string id = App.Config.IsMobileHardware - ? m_TiltBrushOculusMobileAppId - : m_TiltBrushOculusRiftAppId; - if (string.IsNullOrEmpty(id)) { - return; - } - Oculus.Platform.Core.AsyncInitialize(id); - Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback); - } + private void Awake() + { + string id = App.Config.IsMobileHardware + ? m_TiltBrushOculusMobileAppId + : m_TiltBrushOculusRiftAppId; + if (string.IsNullOrEmpty(id)) + { + return; + } + Oculus.Platform.Core.AsyncInitialize(id); + Oculus.Platform.Entitlements.IsUserEntitledToApplication().OnComplete(EntitlementCallback); + } - public void Update() { - Oculus.Platform.Request.RunCallbacks(); - } + public void Update() + { + Oculus.Platform.Request.RunCallbacks(); + } - private void EntitlementCallback(Oculus.Platform.Message msg) - { - string strMsg; - if (msg.IsError) { - if (msg.GetError() != null) { - strMsg = msg.GetError().Message; - } else { - strMsg = "Authentication failed"; - } - } else { - m_authenticated = true; - strMsg = ""; - } + private void EntitlementCallback(Oculus.Platform.Message msg) + { + string strMsg; + if (msg.IsError) + { + if (msg.GetError() != null) + { + strMsg = msg.GetError().Message; + } + else + { + strMsg = "Authentication failed"; + } + } + else + { + m_authenticated = true; + strMsg = ""; + } - if (strMsg != string.Empty) { - Debug.Log(strMsg, this); - } + if (strMsg != string.Empty) + { + Debug.Log(strMsg, this); + } - if (!m_authenticated) { - Debug.Log("User not authenticated! You must be logged in to continue."); - Application.Quit(); - } - } + if (!m_authenticated) + { + Debug.Log("User not authenticated! You must be logged in to continue."); + Application.Quit(); + } + } #endif // OCULUS_SUPPORTED } } // namespace TiltBrush diff --git a/Assets/Scripts/GUI/ColorJitterSlider.cs b/Assets/Scripts/GUI/ColorJitterSlider.cs new file mode 100644 index 0000000000..1db3307171 --- /dev/null +++ b/Assets/Scripts/GUI/ColorJitterSlider.cs @@ -0,0 +1,81 @@ +// Copyright 2021 The Open Brush Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; +using UnityEngine; +namespace TiltBrush +{ + + public class ColorJitterSlider : BaseSlider + { + + private float pow = 1.5f; + + [Serializable] + public enum JitterProperties + { + Hue, + Saturation, + Value + } + public JitterProperties JitterProperty; + + protected override void Awake() + { + + float adjust(float val) { return Mathf.Pow(val * 2f, 1f / pow); } + base.Awake(); + var jitter = PointerManager.m_Instance.colorJitter; + switch (JitterProperty) + { + case JitterProperties.Hue: + m_CurrentValue = adjust(jitter.x); + break; + case JitterProperties.Saturation: + m_CurrentValue = adjust(jitter.y); + break; + case JitterProperties.Value: + m_CurrentValue = adjust(jitter.z); + break; + } + SetSliderPositionToReflectValue(); + } + + public override void UpdateValue(float fValue) + { + var jitter = PointerManager.m_Instance.colorJitter; + float val = Mathf.Pow(fValue, pow) / 2f; // Lower values are more interesting so square it + switch (JitterProperty) + { + case JitterProperties.Hue: + jitter.x = val; + break; + case JitterProperties.Saturation: + jitter.y = val; + break; + case JitterProperties.Value: + jitter.z = val; + break; + } + PointerManager.m_Instance.colorJitter = jitter; + m_CurrentValue = fValue; + Debug.Log($"val {fValue}: {PointerManager.m_Instance.colorJitter} = {jitter}"); + } + + public override void ResetState() + { + base.ResetState(); + } + } +} // namespace TiltBrush diff --git a/Assets/Scripts/GUI/ColorJitterSlider.cs.meta b/Assets/Scripts/GUI/ColorJitterSlider.cs.meta new file mode 100644 index 0000000000..52d43051bc --- /dev/null +++ b/Assets/Scripts/GUI/ColorJitterSlider.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: e666c33c1f8d4893919cca053b306646 +timeCreated: 1620314733 \ No newline at end of file diff --git a/Assets/Scripts/GUI/ColorPickerPopupButton.cs b/Assets/Scripts/GUI/ColorPickerPopupButton.cs new file mode 100644 index 0000000000..572a4e2198 --- /dev/null +++ b/Assets/Scripts/GUI/ColorPickerPopupButton.cs @@ -0,0 +1,23 @@ +// Copyright 2021 The Open Brush Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; + +namespace TiltBrush +{ + public class ColorPickerPopupButton : OptionButton + { + + } +} // namespace TiltBrush diff --git a/Assets/Scripts/GUI/ColorPickerPopupButton.cs.meta b/Assets/Scripts/GUI/ColorPickerPopupButton.cs.meta new file mode 100644 index 0000000000..ca2fdddd8d --- /dev/null +++ b/Assets/Scripts/GUI/ColorPickerPopupButton.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 52a637c1c82845bba8ccdf9befbcd252 +timeCreated: 1620219466 \ No newline at end of file diff --git a/Assets/Scripts/GUI/PolyPanel.cs b/Assets/Scripts/GUI/PolyPanel.cs index 4bed51b44f..ca2d8985fb 100644 --- a/Assets/Scripts/GUI/PolyPanel.cs +++ b/Assets/Scripts/GUI/PolyPanel.cs @@ -39,7 +39,6 @@ public class PolyPanel : ModalPanel [SerializeField] private GameObject m_NoLikesMessage; [SerializeField] private GameObject m_NotLoggedInMessage; [SerializeField] private GameObject m_OutOfDateMessage; - [SerializeField] private GameObject m_NotSupportedMessage; [SerializeField] private GameObject m_NoPolyConnectionMessage; private PolySetType m_CurrentSet; @@ -70,8 +69,6 @@ public override void InitPanel() m_NoLikesMessage.SetActive(false); m_NotLoggedInMessage.SetActive(false); m_OutOfDateMessage.SetActive(false); - if (m_NotSupportedMessage) - m_NotSupportedMessage.SetActive(false); m_NoPolyConnectionMessage.SetActive(false); } @@ -135,15 +132,6 @@ protected override void RefreshPage() return; } -#if UNITY_ANDROID && OCULUS_SUPPORTED - if (OVRPlugin.GetSystemHeadsetType() == OVRPlugin.SystemHeadset.Oculus_Quest) { - m_NotSupportedMessage.SetActive(true); - RefreshPanelText(); - base.RefreshPage(); - return; - } -#endif - m_NumPages = ((App.PolyAssetCatalog.NumCloudModels(m_CurrentSet) - 1) / Icons.Count) + 1; int numCloudModels = App.PolyAssetCatalog.NumCloudModels(m_CurrentSet); diff --git a/Assets/Scripts/GUI/SketchbookPanel.cs b/Assets/Scripts/GUI/SketchbookPanel.cs index c5b1178b98..a262e70a36 100644 --- a/Assets/Scripts/GUI/SketchbookPanel.cs +++ b/Assets/Scripts/GUI/SketchbookPanel.cs @@ -44,7 +44,6 @@ public class SketchbookPanel : ModalPanel [SerializeField] private GameObject m_NoShowcaseMessage; [SerializeField] private GameObject m_ContactingServerMessage; [SerializeField] private GameObject m_OutOfDateMessage; - [SerializeField] private GameObject m_NotSupportedMessage; [SerializeField] private GameObject m_NoPolyConnectionMessage; [SerializeField] private Renderer m_OnlineGalleryButtonRenderer; [SerializeField] private GameObject[] m_IconsOnFirstPage; @@ -333,15 +332,7 @@ protected override void RefreshPage() || m_CurrentSketchSet == SketchSetType.Liked); m_OutOfDateMessage.SetActive(outOfDate); - bool notSupported = false; -#if UNITY_ANDROID && OCULUS_SUPPORTED - notSupported = !polyDown && !outOfDate && OVRPlugin.GetSystemHeadsetType() == OVRPlugin.SystemHeadset.Oculus_Quest - && (m_CurrentSketchSet == SketchSetType.Curated - || m_CurrentSketchSet == SketchSetType.Liked); - m_NotSupportedMessage.SetActive(notSupported); -#endif - - if (outOfDate || polyDown || notSupported) + if (outOfDate || polyDown) { m_NoSketchesMessage.SetActive(false); m_NoDriveSketchesMessage.SetActive(false); diff --git a/Assets/Scripts/GUI/StencilAttractDistanceSlider.cs b/Assets/Scripts/GUI/StencilAttractDistanceSlider.cs new file mode 100644 index 0000000000..1e0091dd90 --- /dev/null +++ b/Assets/Scripts/GUI/StencilAttractDistanceSlider.cs @@ -0,0 +1,83 @@ +// Copyright 2021 The Open Brush Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using UnityEngine; +using System; + +namespace TiltBrush +{ + public class StencilAttractDistanceSlider : BaseSlider + { + [SerializeField] private float m_MinAttractDistance = 0.25f; + [SerializeField] private float m_MaxAttractDistance = 2f; + + void OnEnable() + { + App.Switchboard.StencilAttractDistChanged += OnStencilAttractDistChanged; + OnStencilAttractDistChanged(); + } + + protected override void OnDestroy() + { + base.OnDestroy(); + App.Switchboard.StencilAttractDistChanged -= OnStencilAttractDistChanged; + } + + public override void UpdateValue(float value) + { + base.UpdateValue(value); + SetSliderPositionToReflectValue(); + + SetDescriptionText(m_DescriptionText, $"{value * 100:0}%"); + } + + // If some other logic (not the slider) changes the value, we + // will be notified here so that we can update the slider visuals + private void OnStencilAttractDistChanged() + { + if (WidgetManager.m_Instance != null) + { + float value = WidgetManager.m_Instance.StencilAttractDist; + float range = m_MaxAttractDistance - m_MinAttractDistance; + float newSliderValue = (value - m_MinAttractDistance) / range; + UpdateValue(newSliderValue); + } + } + + public override void ButtonReleased() + { + base.ButtonReleased(); + EndModifyCommand(); + } + + public override void ResetState() + { + if (m_HadButtonPress) + { + EndModifyCommand(); + } + base.ResetState(); + } + + void EndModifyCommand() + { + float percent = GetCurrentValue(); + float displacement = m_MaxAttractDistance - m_MinAttractDistance; + float newDistance = m_MinAttractDistance + percent * displacement; + + SketchMemoryScript.m_Instance.PerformAndRecordCommand( + new ModifyStencilAttractDistanceCommand(newDistance, true)); + } + } +} // namespace TiltBrush diff --git a/Assets/Scripts/GUI/StencilAttractDistanceSlider.cs.meta b/Assets/Scripts/GUI/StencilAttractDistanceSlider.cs.meta new file mode 100644 index 0000000000..226e1b814f --- /dev/null +++ b/Assets/Scripts/GUI/StencilAttractDistanceSlider.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 83564bfff5bdd8a4eb20117ce11dff66 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Input/OculusControllerInfo.cs b/Assets/Scripts/Input/OculusControllerInfo.cs index f00bd289e7..3497512887 100644 --- a/Assets/Scripts/Input/OculusControllerInfo.cs +++ b/Assets/Scripts/Input/OculusControllerInfo.cs @@ -17,7 +17,7 @@ #if !OCULUS_SUPPORTED using OVRInput_Controller = System.Int32; #else // !OCULUS_SUPPORTED - using OVRInput_Controller = OVRInput.Controller; +using OVRInput_Controller = OVRInput.Controller; #endif // OCULUS_SUPPORTED namespace TiltBrush @@ -33,170 +33,193 @@ public class OculusControllerInfo : ControllerInfo public OVRInput_Controller m_ControllerType = 0; #if OCULUS_SUPPORTED - public OculusControllerInfo(BaseControllerBehavior behavior, bool isLeftHand) - : base(behavior) { - m_ControllerType = isLeftHand ? OVRInput.Controller.LTouch : OVRInput.Controller.RTouch; - } - - /// Updates IsTrackedObjectValid and Behavior.transform - public void UpdatePosesAndValidity() { - // OVRInput.Controller.Touch checks both (LTouch | RTouch) - bool bothTouchControllersConnected = - (OVRInput.GetConnectedControllers() & OVRInput.Controller.Touch) - == OVRInput.Controller.Touch; - OVRInput.Controller input = m_ControllerType; - IsTrackedObjectValid = OVRInput.GetControllerOrientationTracked(input) || - OVRInput.GetControllerPositionTracked(input) && - bothTouchControllersConnected; - Transform t = Behavior.transform; - t.localRotation = OVRInput.GetLocalControllerRotation(input); - t.localPosition = OVRInput.GetLocalControllerPosition(input); - } - - // Was InputManager.GetTriggerRatio() - public override float GetTriggerRatio() { - return OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger, m_ControllerType); - } - - private OVRInput.Button MapVrInput(VrInput input) { - switch (input) { - case VrInput.Directional: - case VrInput.Thumbstick: - case VrInput.Touchpad: - return OVRInput.Button.PrimaryThumbstick; - - case VrInput.Trigger: - return OVRInput.Button.PrimaryIndexTrigger; - - case VrInput.Grip: - return OVRInput.Button.PrimaryHandTrigger; - - case VrInput.Button04: - return OVRInput.Button.One; - - case VrInput.Button01: - case VrInput.Button06: - // Pad_Left, Pad_Down, Full pad, (X,A) - return OVRInput.Button.One; - - case VrInput.Button02: - case VrInput.Button03: - case VrInput.Button05: - // Pad_Right, Pad_Up, Application button, (Y,B) - return OVRInput.Button.Two; - - case VrInput.Any: - return OVRInput.Button.One - | OVRInput.Button.Two - | OVRInput.Button.PrimaryThumbstick - | OVRInput.Button.PrimaryIndexTrigger - | OVRInput.Button.PrimaryHandTrigger - ; - } + public OculusControllerInfo(BaseControllerBehavior behavior, bool isLeftHand) + : base(behavior) + { + m_ControllerType = isLeftHand ? OVRInput.Controller.LTouch : OVRInput.Controller.RTouch; + } - // Should never get here. - return OVRInput.Button.None; - } - - private OVRInput.Touch MapVrTouch(VrInput input) { - switch (input) { - case VrInput.Button01: - case VrInput.Button04: - case VrInput.Button06: - return OVRInput.Touch.One; - case VrInput.Button02: - case VrInput.Button03: - case VrInput.Button05: - return OVRInput.Touch.Two; - case VrInput.Directional: - case VrInput.Thumbstick: - case VrInput.Touchpad: - return OVRInput.Touch.PrimaryThumbstick; - case VrInput.Any: - return OVRInput.Touch.One | - OVRInput.Touch.Two | - OVRInput.Touch.PrimaryThumbstick; - default: - Debug.Assert(false, string.Format("Invalid touch button enum: {0}", input.ToString())); - return OVRInput.Touch.None; - } - } - - // Not filtered - public override Vector2 GetPadValue() { - return GetThumbStickValue(); - } - - // Not filtered - public override Vector2 GetThumbStickValue() { - return OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick, m_ControllerType); - } - - public override Vector2 GetPadValueDelta() { - return new Vector2(GetScrollXDelta(), GetScrollYDelta()); - } - - public override float GetGripValue() { - // Raw value in [0, 1] - return OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger, m_ControllerType); - } - - public override float GetTriggerValue() { - return OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger, m_ControllerType); - } - - public override float GetScrollXDelta() { - if (IsTrackedObjectValid) { - return OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick, m_ControllerType).x; - } - return 0.0f; - } + /// Updates IsTrackedObjectValid and Behavior.transform + public void UpdatePosesAndValidity() + { + // OVRInput.Controller.Touch checks both (LTouch | RTouch) + bool bothTouchControllersConnected = + (OVRInput.GetConnectedControllers() & OVRInput.Controller.Touch) + == OVRInput.Controller.Touch; + OVRInput.Controller input = m_ControllerType; + IsTrackedObjectValid = OVRInput.GetControllerOrientationTracked(input) || + OVRInput.GetControllerPositionTracked(input) && + bothTouchControllersConnected; + Transform t = Behavior.transform; + t.localRotation = OVRInput.GetLocalControllerRotation(input); + t.localPosition = OVRInput.GetLocalControllerPosition(input); + } - public override float GetScrollYDelta() { - if (IsTrackedObjectValid) { - return OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick, m_ControllerType).y; - } - return 0.0f; - } - - /// Returns the value of the specified button (level trigger). - public override bool GetVrInput(VrInput input) { - if (!m_IsValid) { return false; } - - switch (input) { - case VrInput.Grip: - // This is the old behavior of GetControllerGrip() which was merged into GetVrInput() - return OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger, m_ControllerType) > - App.VrSdk.AnalogGripBinaryThreshold_Rift; - default: - return OVRInput.Get(MapVrInput(input), m_ControllerType); - } - } - - /// Returns true if the specified button was just pressed (rising-edge trigger). - public override bool GetVrInputDown(VrInput input) { - if (!m_IsValid) { return false; } - return OVRInput.GetDown(MapVrInput(input), m_ControllerType); - } - - public override bool GetVrInputTouch(VrInput input) { - if (!m_IsValid) { return false; } - return OVRInput.Get(MapVrTouch(input), m_ControllerType); - } - - public override void TriggerControllerHaptics(float seconds) { - if (m_VibrationCoroutine != null) { - App.Instance.StopCoroutine(m_VibrationCoroutine); - } + // Was InputManager.GetTriggerRatio() + public override float GetTriggerRatio() + { + return OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger, m_ControllerType); + } + + private OVRInput.Button MapVrInput(VrInput input) + { + switch (input) + { + case VrInput.Directional: + case VrInput.Thumbstick: + case VrInput.Touchpad: + return OVRInput.Button.PrimaryThumbstick; + + case VrInput.Trigger: + return OVRInput.Button.PrimaryIndexTrigger; + + case VrInput.Grip: + return OVRInput.Button.PrimaryHandTrigger; + + case VrInput.Button04: + return OVRInput.Button.One; + + case VrInput.Button01: + case VrInput.Button06: + // Pad_Left, Pad_Down, Full pad, (X,A) + return OVRInput.Button.One; + + case VrInput.Button02: + case VrInput.Button03: + case VrInput.Button05: + // Pad_Right, Pad_Up, Application button, (Y,B) + return OVRInput.Button.Two; + + case VrInput.Any: + return OVRInput.Button.One + | OVRInput.Button.Two + | OVRInput.Button.PrimaryThumbstick + | OVRInput.Button.PrimaryIndexTrigger + | OVRInput.Button.PrimaryHandTrigger + ; + } + + // Should never get here. + return OVRInput.Button.None; + } + + private OVRInput.Touch MapVrTouch(VrInput input) + { + switch (input) + { + case VrInput.Button01: + case VrInput.Button04: + case VrInput.Button06: + return OVRInput.Touch.One; + case VrInput.Button02: + case VrInput.Button03: + case VrInput.Button05: + return OVRInput.Touch.Two; + case VrInput.Directional: + case VrInput.Thumbstick: + case VrInput.Touchpad: + return OVRInput.Touch.PrimaryThumbstick; + case VrInput.Any: + return OVRInput.Touch.One | + OVRInput.Touch.Two | + OVRInput.Touch.PrimaryThumbstick; + default: + Debug.Assert(false, string.Format("Invalid touch button enum: {0}", input.ToString())); + return OVRInput.Touch.None; + } + } + + // Not filtered + public override Vector2 GetPadValue() + { + return GetThumbStickValue(); + } + + // Not filtered + public override Vector2 GetThumbStickValue() + { + return OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick, m_ControllerType); + } + + public override Vector2 GetPadValueDelta() + { + return new Vector2(GetScrollXDelta(), GetScrollYDelta()); + } - App.Instance.StartCoroutine(DoVibration(m_ControllerType, seconds)); - } + public override float GetGripValue() + { + // Raw value in [0, 1] + return OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger, m_ControllerType); + } + + public override float GetTriggerValue() + { + return OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger, m_ControllerType); + } + + public override float GetScrollXDelta() + { + if (IsTrackedObjectValid) + { + return OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick, m_ControllerType).x; + } + return 0.0f; + } + + public override float GetScrollYDelta() + { + if (IsTrackedObjectValid) + { + return OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick, m_ControllerType).y; + } + return 0.0f; + } + + /// Returns the value of the specified button (level trigger). + public override bool GetVrInput(VrInput input) + { + if (!m_IsValid) { return false; } + + switch (input) + { + case VrInput.Grip: + // This is the old behavior of GetControllerGrip() which was merged into GetVrInput() + return OVRInput.Get(OVRInput.Axis1D.PrimaryHandTrigger, m_ControllerType) > + App.VrSdk.AnalogGripBinaryThreshold_Rift; + default: + return OVRInput.Get(MapVrInput(input), m_ControllerType); + } + } + + /// Returns true if the specified button was just pressed (rising-edge trigger). + public override bool GetVrInputDown(VrInput input) + { + if (!m_IsValid) { return false; } + return OVRInput.GetDown(MapVrInput(input), m_ControllerType); + } + + public override bool GetVrInputTouch(VrInput input) + { + if (!m_IsValid) { return false; } + return OVRInput.Get(MapVrTouch(input), m_ControllerType); + } + + public override void TriggerControllerHaptics(float seconds) + { + if (m_VibrationCoroutine != null) + { + App.Instance.StopCoroutine(m_VibrationCoroutine); + } - private IEnumerator DoVibration(OVRInput.Controller controller, float duration) { - OVRInput.SetControllerVibration(1, App.VrSdk.VrControls.HapticsAmplitudeScale, controller); - yield return new WaitForSeconds(App.VrSdk.VrControls.HapticsDurationScale * duration); - OVRInput.SetControllerVibration(0, 0, controller); - } + App.Instance.StartCoroutine(DoVibration(m_ControllerType, seconds)); + } + + private IEnumerator DoVibration(OVRInput.Controller controller, float duration) + { + OVRInput.SetControllerVibration(1, App.VrSdk.VrControls.HapticsAmplitudeScale, controller); + yield return new WaitForSeconds(App.VrSdk.VrControls.HapticsDurationScale * duration); + OVRInput.SetControllerVibration(0, 0, controller); + } #else // OCULUS_SUPPORTED public OculusControllerInfo(BaseControllerBehavior behavior, bool isLeftHand) diff --git a/Assets/Scripts/OculusMRCCameraUpdate.cs b/Assets/Scripts/OculusMRCCameraUpdate.cs deleted file mode 100644 index 5af654df7a..0000000000 --- a/Assets/Scripts/OculusMRCCameraUpdate.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2021 The Open Brush Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using UnityEngine; -using Node = UnityEngine.XR.XRNode; -using NodeState = UnityEngine.XR.XRNodeState; - -#if OCULUS_SUPPORTED -namespace TiltBrush { - -public class OculusMRCCameraUpdate : MonoBehaviour { - - private OVRPose? calibratedCameraPose = null; - - void Update() { - if (!calibratedCameraPose.HasValue) { - if (!OVRPlugin.Media.GetInitialized()) { - return; - } - - OVRPlugin.CameraIntrinsics cameraIntrinsics; - OVRPlugin.CameraExtrinsics cameraExtrinsics; - - if (OVRPlugin.GetMixedRealityCameraInfo(0, out cameraExtrinsics, out cameraIntrinsics)) { - calibratedCameraPose = cameraExtrinsics.RelativePose.ToOVRPose(); - } else { - return; - } - } - - OVRPose cameraStagePoseInUnits = calibratedCameraPose.Value; - - // Converting position from meters to decimeters (unit used by Open Brush) - cameraStagePoseInUnits.position *= App.METERS_TO_UNITS; - - // Workaround to fix the OVRExtensions.ToWorldSpacePose() and - // OVRComposition.ComputeCameraWorldSpacePose() calls when computing - // the Mixed Reality foreground and background camera positions. - OVRPose headPose = OVRPose.identity; - - Vector3 pos; - Quaternion rot; - - if (OVRNodeStateProperties.GetNodeStatePropertyVector3(Node.Head, - NodeStatePropertyType.Position, OVRPlugin.Node.Head, OVRPlugin.Step.Render, out pos)) { - headPose.position = pos; - } - - if (OVRNodeStateProperties.GetNodeStatePropertyQuaternion(Node.Head, - NodeStatePropertyType.Orientation, OVRPlugin.Node.Head, OVRPlugin.Step.Render, out rot)) { - headPose.orientation = rot; - } - - OVRPose headPoseInUnits = OVRPose.identity; - headPoseInUnits.position = headPose.position * App.METERS_TO_UNITS; - headPoseInUnits.orientation = headPose.orientation; - - OVRPose stageToLocalPose = OVRPlugin.GetTrackingTransformRelativePose( - OVRPlugin.TrackingOrigin.Stage).ToOVRPose(); - - OVRPose stageToLocalPoseInUnits = OVRPose.identity; - stageToLocalPoseInUnits.position = stageToLocalPose.position * App.METERS_TO_UNITS; - stageToLocalPoseInUnits.orientation = stageToLocalPose.orientation; - - OVRPose cameraWorldPoseInUnits = headPoseInUnits.Inverse() * stageToLocalPoseInUnits * - cameraStagePoseInUnits; - OVRPose cameraStagePoseFix = stageToLocalPose.Inverse() * headPose * cameraWorldPoseInUnits; - - // Override the MRC camera's stage pose - OVRPlugin.OverrideExternalCameraStaticPose(0, true, cameraStagePoseFix.ToPosef()); - } -} -} // namespace TiltBrush - -#endif // OCULUS_SUPPORTED diff --git a/Assets/Scripts/PointerManager.cs b/Assets/Scripts/PointerManager.cs index 4feed251ac..138152b29b 100644 --- a/Assets/Scripts/PointerManager.cs +++ b/Assets/Scripts/PointerManager.cs @@ -17,6 +17,7 @@ using System.Collections.Generic; using System.Runtime.InteropServices; using ControllerName = TiltBrush.InputManager.ControllerName; +using Random = UnityEngine.Random; namespace TiltBrush { @@ -151,6 +152,8 @@ struct StoredBrushInfo private SymmetryMode m_CurrentSymmetryMode; private SymmetryWidget m_SymmetryWidgetScript; private bool m_UseSymmetryWidget = false; + private Color m_lastChosenColor { get; set; } + public Vector3 colorJitter { get; set; } // These variables are legacy for supporting z-fighting control on the sketch surface // panel in monoscopic mode. @@ -177,15 +180,23 @@ public PointerScript MainPointer get { return m_MainPointerData.m_Script; } } + /// Only call this if you don't want to update m_lastChosenColor + /// Used by color jitter on new stroke + private void ChangeAllPointerColorsDirectly(Color value) + { + for (int i = 0; i < m_NumActivePointers; ++i) + { + m_Pointers[i].m_Script.SetColor(value); + } + } + public Color PointerColor { get { return m_MainPointerData.m_Script.GetCurrentColor(); } set { - for (int i = 0; i < m_NumActivePointers; ++i) - { - m_Pointers[i].m_Script.SetColor(value); - } + ChangeAllPointerColorsDirectly(value); + m_lastChosenColor = value; OnPointerColorChange(); } } @@ -997,6 +1008,27 @@ void CheckGestures() private void Transition_WaitingForInput_RecordingInput() { + // Can't check for null as Color is a struct + // But it's harmless to call this if the color really has been set to black + if (m_lastChosenColor == Color.black) + { + m_lastChosenColor = PointerColor; + } + + if (colorJitter.sqrMagnitude > 0) // Is Jitter enabled? + { + float h, s, v; + Color.RGBToHSV(m_lastChosenColor, out h, out s, out v); + + // Bypass the code in the PointerColor setter + ChangeAllPointerColorsDirectly(Random.ColorHSV( + h - colorJitter.x, h + colorJitter.x, + s - colorJitter.y, h + colorJitter.y, + v - colorJitter.z, h + colorJitter.z + )); + } + + if (m_StraightEdgeEnabled) { StraightEdgeGuide.SetTempShape(StraightEdgeGuideScript.Shape.Line); diff --git a/Assets/Scripts/Sharing/VrAssetService.cs b/Assets/Scripts/Sharing/VrAssetService.cs index fb493a5cf3..673632f55a 100644 --- a/Assets/Scripts/Sharing/VrAssetService.cs +++ b/Assets/Scripts/Sharing/VrAssetService.cs @@ -527,6 +527,8 @@ private async void VerifyPolyConnectionAndCheckApiVersionAsync() private static async Task GetPolyStatus() { + return PolyStatus.Disabled; + // UserConfig override if (App.UserConfig.Flags.DisablePoly || string.IsNullOrEmpty(App.Config.GoogleSecrets?.ApiKey)) diff --git a/Assets/Scripts/SketchControlsScript.cs b/Assets/Scripts/SketchControlsScript.cs index 0152dc708e..aec24eec0d 100644 --- a/Assets/Scripts/SketchControlsScript.cs +++ b/Assets/Scripts/SketchControlsScript.cs @@ -140,6 +140,7 @@ public enum GlobalCommands LoadWaitOnDownload, SignOutConfirm, ReadOnlyNotice, + OpenColorOptionsPopup = 7000 } public enum ControlsType diff --git a/Assets/Scripts/Switchboard.cs b/Assets/Scripts/Switchboard.cs index 5c8831f83e..a5795b23a4 100644 --- a/Assets/Scripts/Switchboard.cs +++ b/Assets/Scripts/Switchboard.cs @@ -22,6 +22,7 @@ public class Switchboard public event Action MirrorVisibilityChanged; public event Action PanelDismissed; public event Action StencilModeChanged; + public event Action StencilAttractDistChanged; public event Action AudioReactiveStateChanged; public event Action MemoryExceededChanged; public event Action MemoryWarningAcceptedChanged; @@ -64,6 +65,11 @@ public void TriggerStencilModeChanged() StencilModeChanged?.Invoke(); } + public void TriggerStencilAttractDistChanged() + { + StencilAttractDistChanged?.Invoke(); + } + public void TriggerAudioReactiveStateChanged() { AudioReactiveStateChanged?.Invoke(); diff --git a/Assets/Scripts/VrSdk.cs b/Assets/Scripts/VrSdk.cs index 89ad5153ae..a93ae15991 100644 --- a/Assets/Scripts/VrSdk.cs +++ b/Assets/Scripts/VrSdk.cs @@ -91,7 +91,7 @@ public class VrSdk : MonoBehaviour // Oculus Overlay #if OCULUS_SUPPORTED - private OVROverlay m_OVROverlay; + private OVROverlay m_OVROverlay; #endif // OCULUS_SUPPORTED // Mobile Overlay @@ -167,18 +167,19 @@ void Awake() m_OverlayMode = OverlayMode.Steam; } #if OCULUS_SUPPORTED - else if (App.Config.m_SdkMode == SdkMode.Oculus) { - m_OverlayMode = OverlayMode.OVR; - var gobj = new GameObject("Oculus Overlay"); - gobj.transform.SetParent(m_VrSystem.transform, worldPositionStays: false); - m_OVROverlay = gobj.AddComponent(); - m_OVROverlay.isDynamic = true; - m_OVROverlay.compositionDepth = 0; - m_OVROverlay.currentOverlayType = OVROverlay.OverlayType.Overlay; - m_OVROverlay.currentOverlayShape = OVROverlay.OverlayShape.Quad; - m_OVROverlay.noDepthBufferTesting = true; - m_OVROverlay.enabled = false; - } + else if (App.Config.m_SdkMode == SdkMode.Oculus) + { + m_OverlayMode = OverlayMode.OVR; + var gobj = new GameObject("Oculus Overlay"); + gobj.transform.SetParent(m_VrSystem.transform, worldPositionStays: false); + m_OVROverlay = gobj.AddComponent(); + m_OVROverlay.isDynamic = true; + m_OVROverlay.compositionDepth = 0; + m_OVROverlay.currentOverlayType = OVROverlay.OverlayType.Overlay; + m_OVROverlay.currentOverlayShape = OVROverlay.OverlayShape.Quad; + m_OVROverlay.noDepthBufferTesting = true; + m_OVROverlay.enabled = false; + } #endif // OCULUS_SUPPORTED if (App.Config.m_SdkMode == SdkMode.Oculus) @@ -212,7 +213,10 @@ void Awake() m_VrCamera.gameObject.AddComponent(); m_VrCamera.gameObject.AddComponent(); - gameObject.AddComponent(); + //Add an OVRCameraRig to the VrSystem for Mixed Reality Capture. + var cameraRig = m_VrSystem.AddComponent(); + //Disable the OVRCameraRig's eye cameras, since Open Brush already has its own. + cameraRig.disableEyeAnchorCameras = true; #endif // OCULUS_SUPPORTED } else if (App.Config.m_SdkMode == SdkMode.SteamVR) @@ -312,10 +316,10 @@ void Start() else if (App.Config.m_SdkMode == SdkMode.Oculus) { #if OCULUS_SUPPORTED - OculusHandTrackingManager.NewPosesApplied += OnNewPoses; - // We shouldn't call this frequently, hence the local cache and callbacks. - OVRManager.VrFocusAcquired += () => { OnInputFocus(true); }; - OVRManager.VrFocusLost += () => { OnInputFocus(false); }; + OculusHandTrackingManager.NewPosesApplied += OnNewPoses; + // We shouldn't call this frequently, hence the local cache and callbacks. + OVRManager.VrFocusAcquired += () => { OnInputFocus(true); }; + OVRManager.VrFocusLost += () => { OnInputFocus(false); }; #endif // OCULUS_SUPPORTED } else if (App.Config.m_SdkMode == SdkMode.Gvr) @@ -436,11 +440,12 @@ public string GetDisplayIdentifier() else if (App.Config.m_SdkMode == SdkMode.Oculus) { #if OCULUS_SUPPORTED - OVRPlugin.AppPerfStats perfStats = OVRPlugin.GetAppPerfStats(); - if (perfStats.FrameStatsCount > 0) { - return perfStats.FrameStats[0].AppDroppedFrameCount; - } - return 0; + OVRPlugin.AppPerfStats perfStats = OVRPlugin.GetAppPerfStats(); + if (perfStats.FrameStatsCount > 0) + { + return perfStats.FrameStats[0].AppDroppedFrameCount; + } + return 0; #endif // OCULUS_SUPPORTED } @@ -452,7 +457,7 @@ public void ResetPerfStats() if (App.Config.m_SdkMode == SdkMode.Oculus) { #if OCULUS_SUPPORTED - OVRPlugin.ResetAppPerfStats(); + OVRPlugin.ResetAppPerfStats(); #endif // OCULUS_SUPPORTED } } @@ -493,10 +498,10 @@ private void RefreshRoomBoundsCache() if (App.Config.m_SdkMode == SdkMode.Oculus) { #if OCULUS_SUPPORTED - // N points, clockwise winding (but axis is undocumented), undocumented convexity - // In practice, it's clockwise looking along Y- - points_RS = OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.OuterBoundary) - .Select(v => UnityFromOculus(v)).ToArray(); + // N points, clockwise winding (but axis is undocumented), undocumented convexity + // In practice, it's clockwise looking along Y- + points_RS = OVRManager.boundary.GetGeometry(OVRBoundary.BoundaryType.OuterBoundary) + .Select(v => UnityFromOculus(v)).ToArray(); #endif // OCULUS_SUPPORTED } else if (App.Config.m_SdkMode == SdkMode.SteamVR) @@ -893,7 +898,7 @@ public bool OverlayEnabled return m_SteamVROverlay.gameObject.activeSelf; case OverlayMode.OVR: #if OCULUS_SUPPORTED - return m_OVROverlay.enabled; + return m_OVROverlay.enabled; #else return false; #endif // OCULUS_SUPPORTED @@ -912,7 +917,7 @@ public bool OverlayEnabled break; case OverlayMode.OVR: #if OCULUS_SUPPORTED - m_OVROverlay.enabled = value; + m_OVROverlay.enabled = value; #endif // OCULUS_SUPPORTED break; case OverlayMode.Mobile: @@ -932,7 +937,7 @@ public void SetOverlayTexture(Texture tex) break; case OverlayMode.OVR: #if OCULUS_SUPPORTED - m_OVROverlay.textures = new[] { tex }; + m_OVROverlay.textures = new[] { tex }; #endif // OCULUS_SUPPORTED break; } @@ -956,9 +961,9 @@ public void PositionOverlay(float distance, float height) break; case OverlayMode.OVR: #if OCULUS_SUPPORTED - vOverlayPosition += (vOverlayDirection * distance / 10); - m_OVROverlay.transform.position = vOverlayPosition; - m_OVROverlay.transform.forward = vOverlayDirection; + vOverlayPosition += (vOverlayDirection * distance / 10); + m_OVROverlay.transform.position = vOverlayPosition; + m_OVROverlay.transform.forward = vOverlayDirection; #endif // OCULUS_SUPPORTED break; } @@ -1063,9 +1068,10 @@ public bool IsHmdInitialized() return true; } #if OCULUS_SUPPORTED - else if (App.Config.m_SdkMode == SdkMode.Oculus && !OVRManager.isHmdPresent) { - return false; - } + else if (App.Config.m_SdkMode == SdkMode.Oculus && !OVRManager.isHmdPresent) + { + return false; + } #endif // OCULUS_SUPPORTED /* else if (App.Config.m_SdkMode == SdkMode.Wmr && somehow check for Wmr headset ) { return false; @@ -1179,27 +1185,33 @@ public void RestorePoseTracking() // Performance Methods // -------------------------------------------------------------------------------------------- // #if OCULUS_SUPPORTED - public void SetFixedFoveation(int level) { - Debug.Assert(level >= 0 && level <= 3); - if (App.Config.IsMobileHardware && !SpoofMobileHardware.MobileHardware - && App.Config.m_SdkMode == SdkMode.Oculus) { - OVRManager.tiledMultiResLevel = (OVRManager.TiledMultiResLevel) level; - } - } + public void SetFixedFoveation(int level) + { + Debug.Assert(level >= 0 && level <= 3); + if (App.Config.IsMobileHardware && !SpoofMobileHardware.MobileHardware + && App.Config.m_SdkMode == SdkMode.Oculus) + { + OVRManager.tiledMultiResLevel = (OVRManager.TiledMultiResLevel)level; + } + } - /// Gets GPU utilization 0 .. 1 if supported, otherwise returns 0. - public float GetGpuUtilization() { - if (App.Config.m_SdkMode == SdkMode.Oculus && OVRManager.gpuUtilSupported) { - return OVRManager.gpuUtilLevel; - } - return 0; - } + /// Gets GPU utilization 0 .. 1 if supported, otherwise returns 0. + public float GetGpuUtilization() + { + if (App.Config.m_SdkMode == SdkMode.Oculus && OVRManager.gpuUtilSupported) + { + return OVRManager.gpuUtilLevel; + } + return 0; + } - public void SetGpuClockLevel(int level) { - if (App.Config.m_SdkMode == SdkMode.Oculus && App.Config.IsMobileHardware) { - OVRManager.gpuLevel = level; - } - } + public void SetGpuClockLevel(int level) + { + if (App.Config.m_SdkMode == SdkMode.Oculus && App.Config.IsMobileHardware) + { + OVRManager.gpuLevel = level; + } + } #else // OCULUS_SUPPORTED public void SetFixedFoveation(int level) { diff --git a/Assets/Scripts/WidgetManager.cs b/Assets/Scripts/WidgetManager.cs index 1da0d66485..bcf03e2238 100644 --- a/Assets/Scripts/WidgetManager.cs +++ b/Assets/Scripts/WidgetManager.cs @@ -206,6 +206,16 @@ public LayerMask StencilLayerMask get { return LayerMask.GetMask(m_StencilLayerName); } } + public float StencilAttractDist + { + get => m_StencilAttractDist; + set + { + m_StencilAttractDist = value; + App.Switchboard.TriggerStencilAttractDistChanged(); + } + } + public List WidgetsNearBrush { get { return m_WidgetsNearBrush; } @@ -857,7 +867,7 @@ public void MagnetizeToStencils(ref Vector3 pos, ref Quaternion rot) Collider collider = stencil.m_WidgetScript.GrabCollider; float centerDist = (collider.bounds.center - samplePos).sqrMagnitude; if (centerDist > - (m_StencilAttractDist * m_StencilAttractDist + collider.bounds.extents.sqrMagnitude)) + (StencilAttractDist * StencilAttractDist + collider.bounds.extents.sqrMagnitude)) { continue; } @@ -867,7 +877,7 @@ public void MagnetizeToStencils(ref Vector3 pos, ref Quaternion rot) // Find out how far we are from this point and save it as a score. float distToSurfactPoint = (m_StencilContactInfos[sIndex].pos - samplePos).magnitude; - float score = 1.0f - (distToSurfactPoint / m_StencilAttractDist); + float score = 1.0f - (distToSurfactPoint / StencilAttractDist); if (score > fBestScore) { iPrimaryIndex = sIndex; diff --git a/Assets/Scripts/Widgets/PlaneStencil.cs b/Assets/Scripts/Widgets/PlaneStencil.cs new file mode 100644 index 0000000000..0e18679ec8 --- /dev/null +++ b/Assets/Scripts/Widgets/PlaneStencil.cs @@ -0,0 +1,209 @@ +// Copyright 2021 The Open Brush Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; +using UnityEngine; + +namespace TiltBrush +{ + /* + * Implements a basic plane guide (known as a stencil in code). This provides a cleaner way + * for mimicking a whiteboard for usages beyond painting on a flat surface. + */ + + public class PlaneStencil : StencilWidget + { + private Vector3 m_AspectRatio; + + // This must be negative for brush strokes to layer on top (rather than below) + private float m_LayeringOffset = -0.1f; + + public override Vector3 Extents + { + get + { + return m_Size * m_AspectRatio; + } + set + { + m_Size = 1f; + m_AspectRatio = value; + UpdateScale(); + } + } + + public override Vector3 CustomDimension + { + get { return m_AspectRatio; } + set + { + m_AspectRatio = value; + UpdateScale(); + } + } + + protected override void Awake() + { + base.Awake(); + m_Type = StencilType.Plane; + m_AspectRatio = Vector3.one; + + // The mesh's z coordinate cannot be at 0 or layering will not work in FindClosestPoint + Vector3 meshPosition = m_Mesh.transform.localPosition; + meshPosition.z = m_LayeringOffset; + m_Mesh.transform.localPosition = meshPosition; + } + + // Determine where the pointer will be snapped or "magnetized" to on the surface + public override void FindClosestPointOnSurface(Vector3 pos, + out Vector3 surfacePos, out Vector3 surfaceNorm) + { + Vector3 localPos = transform.InverseTransformPoint(pos); + Vector3 halfDimensions = ((BoxCollider)m_Collider).size * 0.5f; + surfacePos.x = Mathf.Clamp(localPos.x, -halfDimensions.x, halfDimensions.x); + surfacePos.y = Mathf.Clamp(localPos.y, -halfDimensions.y, halfDimensions.y); + surfacePos.z = m_LayeringOffset; // this must not be too close to 0 or layering will not work + surfaceNorm = -Vector3.forward; + + surfaceNorm = transform.TransformDirection(surfaceNorm); + surfacePos = transform.TransformPoint(surfacePos); + } + + // Determines when you can grab. 1 = best, 0 = worst, -1 = invalid + public override float GetActivationScore( + Vector3 vControllerPos, InputManager.ControllerName name) + { + float baseScore = base.GetActivationScore(vControllerPos, name); + return baseScore; + } + + // Determine if whether we are trying to scale along an axis or uniformly (Invalid) + protected override Axis GetInferredManipulationAxis( + Vector3 primaryHand, Vector3 secondaryHand, bool secondaryHandInside) + { + if (secondaryHandInside) + { + return Axis.Invalid; + } + Vector3 vHandsInObjectSpace = transform.InverseTransformDirection(primaryHand - secondaryHand); + Vector3 vAbs = vHandsInObjectSpace.Abs(); + if (vAbs.x > vAbs.y && vAbs.x > vAbs.z) + { + return Axis.X; + } + else if (vAbs.y > vAbs.z) + { + return Axis.Y; + } + else + { + return Axis.Invalid; + } + } + + // Apply scale and make it undo-able + public override void RecordAndApplyScaleToAxis(float deltaScale, Axis axis) + { + if (m_RecordMovements) + { + Vector3 newDimensions = CustomDimension; + newDimensions[(int)axis] *= deltaScale; + SketchMemoryScript.m_Instance.PerformAndRecordCommand( + new MoveWidgetCommand(this, LocalTransform, newDimensions)); + } + else + { + m_AspectRatio[(int)axis] *= deltaScale; + UpdateScale(); + } + } + + protected override void RegisterHighlightForSpecificAxis(Axis highlightAxis) + { + if (m_HighlightMeshFilters != null) + { + for (int i = 0; i < m_HighlightMeshFilters.Length; i++) + { + App.Instance.SelectionEffect.RegisterMesh(m_HighlightMeshFilters[i]); + } + } + } + + // Using the locked axis, get the scaled direction of the axis + public override Axis GetScaleAxis(Vector3 handA, Vector3 handB, + out Vector3 axisVec, out float extent) + { + // Unexpected -- normally we're only called during a 2-handed manipulation + Debug.Assert(m_LockedManipulationAxis != null); + Axis axis = m_LockedManipulationAxis ?? Axis.Invalid; + + float parentScale = TrTransform.FromTransform(transform.parent).scale; + + // Fill in axisVec, extent + switch (axis) + { + case Axis.X: + case Axis.Y: + Vector3 axisVec_LS = Vector3.zero; + axisVec_LS[(int)axis] = 1; + axisVec = transform.TransformDirection(axisVec_LS); + extent = parentScale * Extents[(int)axis]; + break; + case Axis.Invalid: + axisVec = default(Vector3); + extent = default(float); + break; + default: + throw new NotImplementedException(axis.ToString()); + } + + return axis; + } + + public override Bounds GetBounds_SelectionCanvasSpace() + { + if (m_BoxCollider != null) + { + TrTransform boxColliderToCanvasXf = App.Scene.SelectionCanvas.Pose.inverse * + TrTransform.FromTransform(m_BoxCollider.transform); + Bounds bounds = new Bounds(boxColliderToCanvasXf * m_BoxCollider.center, Vector3.zero); + + // Transform the corners of the widget bounds into canvas space and extend the total bounds + // to encapsulate them. + for (int i = 0; i < 8; i++) + { + bounds.Encapsulate(boxColliderToCanvasXf * (m_BoxCollider.center + Vector3.Scale( + m_BoxCollider.size, + new Vector3((i & 1) == 0 ? -0.5f : 0.5f, + (i & 2) == 0 ? -0.5f : 0.5f, + (i & 4) == 0 ? -0.5f : 0.5f)))); + } + + return bounds; + } + return new Bounds(); + } + + + // Actually perform the scale change on the Unity transform along with tiling the material + protected override void UpdateScale() + { + float maxAspect = m_AspectRatio.Max(); + m_AspectRatio /= maxAspect; + m_Size *= maxAspect; + transform.localScale = m_Size * m_AspectRatio; + UpdateMaterialScale(); + } + } +} // namespace TiltBrush diff --git a/Assets/Scripts/Widgets/PlaneStencil.cs.meta b/Assets/Scripts/Widgets/PlaneStencil.cs.meta new file mode 100644 index 0000000000..e4e1f3f8ca --- /dev/null +++ b/Assets/Scripts/Widgets/PlaneStencil.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a4159ac323cbcf342a438d0d47995138 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Widgets/StencilWidget.cs b/Assets/Scripts/Widgets/StencilWidget.cs index cafbf6b9a0..da281538a5 100644 --- a/Assets/Scripts/Widgets/StencilWidget.cs +++ b/Assets/Scripts/Widgets/StencilWidget.cs @@ -158,6 +158,7 @@ override public GrabWidget Clone() clone.transform.parent = transform.parent; clone.Show(true, false); clone.SetSignedWidgetSize(this.m_Size); + clone.CloneInitialMaterials(this); clone.Extents = this.Extents; HierarchyUtils.RecursivelySetLayer(clone.transform, gameObject.layer); diff --git a/Assets/ThirdParty/TiltBrushToolkit/Scripts/Gltf/GltfMaterialConverter.cs b/Assets/ThirdParty/TiltBrushToolkit/Scripts/Gltf/GltfMaterialConverter.cs index 0cc5e428f3..cc9cd65c69 100644 --- a/Assets/ThirdParty/TiltBrushToolkit/Scripts/Gltf/GltfMaterialConverter.cs +++ b/Assets/ThirdParty/TiltBrushToolkit/Scripts/Gltf/GltfMaterialConverter.cs @@ -409,7 +409,7 @@ private static string SanitizeName(string uri) { private static IEnumerable ConvertTextureCoroutine( GltfTextureBase gltfTexture, IUriLoader loader) { if (gltfTexture.unityTexture != null) { - throw new InvalidOperationException("Already converted"); + Debug.LogWarning($"Texture already converted: {gltfTexture.unityTexture.name}"); } if (gltfTexture.SourcePtr == null) { diff --git a/CI.md b/CI.md index 2b6a9bc4bc..6a800aea3b 100644 --- a/CI.md +++ b/CI.md @@ -17,3 +17,7 @@ The CI build will automatically enable the use of this file instead of the defau ## Signed Android Builds When building Oculus Android builds, you can use your own keystore instead of the default "Debug" signing keys. This will allow you to upgrade your application, instead of needing to uninstall and reinstall it each time to avoid Signature Mismatch errors. To do this, create a keystore, and a key, and define the following secrets: `ANDROID_KEYSTORE_PASS`, `ANDROID_KEYALIAS_NAME`, and `ANDROID_KEYALIAS_PASS`. The keystore itself should be converted to base64 and stored in a secret named `ANDROID_KEYSTORE_BASE64`; you can get the value to store in the secret by using `base64 -i YOUR_KEYSTORE_NAME.keystore`. + +## Oculus Publish + +Pre-release builds and release builds will automatically be uploaded to Oculus for both Rift and Quest. This requires the following values to be defined (you can get the values from the Admin page in Oculus profile, or from the command line provided in the "Upload a build" button on a release channel. `OCULUS_QUEST_APP_ID`, `OCULUS_QUEST_APP_SECRET`, `OCULUS_RIFT_APP_ID`, `OCULUS_RIFT_APP_SECRET` diff --git a/Packages/com.autodesk.fbx/CHANGELOG.md b/Packages/com.autodesk.fbx/CHANGELOG.md new file mode 100644 index 0000000000..718c6ab7d7 --- /dev/null +++ b/Packages/com.autodesk.fbx/CHANGELOG.md @@ -0,0 +1,125 @@ +# Changes in FBX SDK C# Bindings + +## [4.1.0] - 2021-07-06 + +CHANGES +* Update from prerelease to released package. + +## [4.1.0-pre.3] - 2021-06-28 + +CHANGES +* Universal Mac binary supporting Apple M1 and OSX 10.13+. + +## [4.1.0-pre.1] - 2021-04-30 + +NEW FEATURES +* Add support for Apple M1. +* Add binding to set a string on an FbxProperty. + +## [4.0.1] - 2021-03-10 + +CHANGES +* Update from prerelease to released package. + +## [4.0.0-pre.2] - 2021-01-08 + +CHANGES +* Updated documentation. + * Updated minimum supported Unity version. + * Removed IL2CPP backend not supported section. + * Updated link to FBX SDK API documentation. + * Moved API documentation to Scripting API landing page. +* Update Third Party Notices.md with new FBX License. +* Upgraded to FBX SDK 2020.2. + +## [4.0.0-pre.1] - 2020-10-07 + +NEW FEATURES +* Binding for FbxMesh::GetPolygonVertexNormal(). Thank you to @julienkay for the addition. +* Bindings for FbxNurbsCurve. Thank you to @jeanblouin for the addition. + +CHANGES +* Switched to using Unity code coverage to test unit test coverage. +* Made UnityFbxSdkNative dll and scripts Editor only by default. In order to use at runtime, + add the FBXSDK_RUNTIME define to Edit > Project Settings... > Player > Other Settings > Scripting Define Symbols. +* Update minimum supported Unity version from 2018.2 to 2018.4. + +BUGFIXES +* UnityFbxSdkNative dll is no longer included in builds, fixing an issue with shipping on the Mac App Store. + +## [3.1.0-preview.2] - 2020-07-21 + +CHANGES +* ERRATA: The "Upgraded to FBX SDK 2020.0" entry in the previous version should have been "Upgraded to FBX SDK 2020.1". + +## [3.1.0-preview.1] - 2020-07-17 + +CHANGES +* Upgraded to FBX SDK 2020.0 + +## [3.0.1-preview.1] - 2020-03-31 + +BUGFIXES +* Fix incorrect DLL path used when calling functions, giving DLL not found errors. + +## [3.0.0-preview.1] - 2019-12-03 + +CHANGES +* Upgraded to FBX SDK 2020.0 +* Added bindings for FbxAnimCurve::KeySetTangents and FbxAnimCurve::KeyGetTangents +* Added bindings for FbxAnimCurveKey methods to set and get tangent mode and data +* Added bindings for FbxAxisSystem::DeepConvertScene + +BUGFIXES +* The FBX SDK C# Bindings package now supports the IL2CPP backend. + +KNOW ISSUES +* For Linux support use Ubuntu 18.04 (Bionic Beaver). The FBX SDK C# Bindings package is not compatible with CentOS 7. + +## [2.0.0-preview.3] - 2018-12-03 + +CHANGES +* Updated documentation + +## [2.0.0-preview.2] - 2018-11-13 + +CHANGES +* Removed version number from documentation (already available in changelog) +* Added missing .meta files +* Corrected asmdef name and platform settings +* Corrected plugin .meta file platform settings +* Experimental Linux support + +## [2.0.0-preview.1] - 2018-10-25 + +CHANGES +* Updated documentation to conform to package validation requirements + +## [2.0.0-preview] - 2018-06-22 + +NEW FEATURES +* The C# Bindings package has been renamed to com.autodesk.fbx +* The Autodesk.Fbx assembly can now be used in standalone builds (runtime) +* Added support for physical camera attributes +* Added support for constraints: FbxConstraint, FbxConstraintParent, FbxConstraintAim, and related methods +* Updated to FBX SDK 2018.1 + +KNOWN ISSUES +* The FBX SDK C# Bindings package is not supported if you build using the IL2CPP backend. + +## [1.3.0] - 2018-04-17 +NOTES +* This is the last Asset Store version. It is also known as 1.3.0f1. + +NEW FEATURES +* Added bindings for FbxAnimCurveFilterUnroll +* Added binding for FbxGlobalSettings SetTimeMode to set frame rate +* Exposed bindings to set FbxNode's transformation inherit type +* Added binding for FbxCamera's FieldOfView property +* Added FbxObject::GetScene +* Added bindings for FbxIOFileHeaderInfo. +* Exposed mCreator and mFileVersion as read-only attributes. + +FIXES +* Fix Universal Windows Platform build error caused by UnityFbxSdk.dll being set as compatible with any platform instead of editor only. +* Enforced FbxSdk DLL only works with Unity 2017.1+ diff --git a/Packages/com.autodesk.fbx/CHANGELOG.md.meta b/Packages/com.autodesk.fbx/CHANGELOG.md.meta new file mode 100644 index 0000000000..d077c9e5df --- /dev/null +++ b/Packages/com.autodesk.fbx/CHANGELOG.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: c56490bdd62304a3e99a21086727f6e4 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Documentation~/api_index.md b/Packages/com.autodesk.fbx/Documentation~/api_index.md new file mode 100644 index 0000000000..195cf1d7d6 --- /dev/null +++ b/Packages/com.autodesk.fbx/Documentation~/api_index.md @@ -0,0 +1,20 @@ +# API documentation + +See the [Autodesk® FBX® SDK API documentation](https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_cpp_ref_annotated_html). + +The bindings are in the `Autodesk.Fbx` namespace: + +``` +using Autodesk.Fbx; +using UnityEditor; +using UnityEngine; + +public class HelloFbx { + [MenuItem("Fbx/Hello")] + public static void Hello() { + using(var manager = FbxManager.Create()) { + Debug.LogFormat("FBX SDK is version {0}", FbxManager.GetVersion()); + } + } +} +``` diff --git a/Packages/com.autodesk.fbx/Documentation~/config.json b/Packages/com.autodesk.fbx/Documentation~/config.json new file mode 100644 index 0000000000..0622b0b96a --- /dev/null +++ b/Packages/com.autodesk.fbx/Documentation~/config.json @@ -0,0 +1 @@ +{ "DefineConstants": "UNITY_EDITOR;FBXSDK_RUNTIME" } \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Documentation~/index.md b/Packages/com.autodesk.fbx/Documentation~/index.md new file mode 100644 index 0000000000..4e43508729 --- /dev/null +++ b/Packages/com.autodesk.fbx/Documentation~/index.md @@ -0,0 +1,58 @@ +# About Autodesk® FBX® SDK for Unity + +The C# Autodesk® FBX® SDK package provides access to a subset of the Autodesk® FBX® SDK from Unity C# scripts. + +The Autodesk® FBX® SDK is a C++ software development platform and API toolkit that is free and easy-to-use. It allows application and content vendors to transfer existing content into the FBX format with minimal effort. + +> **Note:** The C# Autodesk® FBX® SDK exposes only [a subset of the full API](../api/index.html). That subset enables exporter tools, such as the [FBX Exporter](https://docs.unity3d.com/Packages/com.unity.formats.fbx@latest) package. Unity does not recommend to use the C# Autodesk® FBX® SDK package for FBX importing. See [Known issues and limitations](#known-issues-and-limitations) for more information. + +## Contents + +The Autodesk® FBX® SDK for Unity package contains: + +* C# bindings +* Compiled binaries for MacOS, Windows, and Ubuntu that include the FBX SDK + +## Requirements + +The Autodesk® FBX® SDK for Unity package is compatible with the following versions of the Unity Editor: + +* 2018.4 and later (recommended) + +## Installation + +Unity automatically installs the Autodesk® FBX® SDK as a dependency of the [FBX Exporter](https://docs.unity3d.com/Packages/com.unity.formats.fbx@latest) package. + +> **Note:** The Package Manager UI does not allow you to discover it, but you can install it without installing the FBX Exporter. In that case, you need to [add it to your package manifest](https://docs.unity3d.com/Packages/com.unity.package-manager-ui@latest). + +## Including the package in a build + +By default, Unity does not include this package in builds, you can only use it in the Editor. However, it is possible to use this package at runtime on some specific platforms. +> **Note:** You can currently use the package in Windows/OSX/Linux standalone builds only. + +To include the Autodesk® FBX® SDK for Unity package in your build: +1. In the Unity Editor main menu, select **Edit > Project Settings**. +2. In **Player** properties, expand the **Other Settings** section. +3. Under **Configuration**, in the **Scripting Define Symbols** field, add `FBXSDK_RUNTIME`. + +## Known issues and limitations + +#### Limited import capabilities + +In this version of the package, you cannot downcast SDK C# objects, which limits the use of the bindings for an importer. + +For example, if the FBX SDK declares in C++ that it returns an `FbxDeformer`, you can safely cast the deformer to a skin deformer on the C++ side if you happen to know it is an `FbxSkinDeformer`. However, on the C# side, this is not permitted. + +#### Unexpected crashes following invalid operations + +While there are guards against some common errors, you might make Unity crash if you write C# code that directs the FBX SDK to perform invalid operations. + +For example, if you have an `FbxProperty` in C# and you delete the `FbxNode` that contains the property, the use of `FbxProperty` may produce an undefined behavior. This might even make the Unity Editor crash. Make sure to read the Editor log if you encounter unexpected crashes when you write FBX SDK C# code. + +#### Linux not supported + +Linux support is currently experimental on this package. Unity does not provide support for it. + +#### Linux requires libstdc++ 6.0.28+ + +On Linux, libstdc++ 6.0.28 is required to be installed in order to use the package. diff --git a/Packages/com.autodesk.fbx/Editor.meta b/Packages/com.autodesk.fbx/Editor.meta new file mode 100644 index 0000000000..9893ae6ad2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1c7d63511182eec4f906d34bd2953b19 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Editor/Autodesk.Fbx.Editor.asmdef b/Packages/com.autodesk.fbx/Editor/Autodesk.Fbx.Editor.asmdef new file mode 100644 index 0000000000..2186298e0b --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Autodesk.Fbx.Editor.asmdef @@ -0,0 +1,14 @@ +{ + "name": "Autodesk.Fbx.Editor", + "references": [], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [] +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Editor/Autodesk.Fbx.Editor.asmdef.meta b/Packages/com.autodesk.fbx/Editor/Autodesk.Fbx.Editor.asmdef.meta new file mode 100644 index 0000000000..d6b69efde0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Autodesk.Fbx.Editor.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ad318b1a7ea5a6f4aa9b396904ece70f +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Editor/Plugins.meta b/Packages/com.autodesk.fbx/Editor/Plugins.meta new file mode 100644 index 0000000000..072fda744e --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 44544f7baf73ace4596a591d41841b30 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.bundle.meta b/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.bundle.meta new file mode 100644 index 0000000000..0f4942567f --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.bundle.meta @@ -0,0 +1,90 @@ +fileFormatVersion: 2 +guid: 0a29d269aa30eda4cb23ebe41b124f23 +folderAsset: yes +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + '': Any + second: + enabled: 0 + settings: + Exclude Editor: 0 + Exclude Linux: 0 + Exclude Linux64: 1 + Exclude LinuxUniversal: 0 + Exclude OSXUniversal: 1 + Exclude Win: 1 + Exclude Win64: 1 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: OSX + - first: + Facebook: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Facebook: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Linux + second: + enabled: 1 + settings: + CPU: x86 + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: LinuxUniversal + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.bundle/Contents.meta b/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.bundle/Contents.meta new file mode 100644 index 0000000000..0aee36957b --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.bundle/Contents.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6493f277d4e87bd48ad6157e20e31725 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.dll b/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.dll new file mode 100644 index 0000000000..46c9caec00 Binary files /dev/null and b/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.dll differ diff --git a/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.dll.meta b/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.dll.meta new file mode 100644 index 0000000000..4c8f1c3922 --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Plugins/UnityFbxSdkNative.dll.meta @@ -0,0 +1,101 @@ +fileFormatVersion: 2 +guid: b2164022394c51c459d1d3c59efd0911 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + '': Any + second: + enabled: 0 + settings: + Exclude Editor: 0 + Exclude Linux: 0 + Exclude Linux64: 1 + Exclude LinuxUniversal: 0 + Exclude OSXUniversal: 1 + Exclude Win: 1 + Exclude Win64: 1 + - first: + '': OSXIntel + second: + enabled: 0 + settings: + CPU: None + - first: + '': OSXIntel64 + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 1 + settings: + CPU: x86_64 + DefaultValueInitialized: true + OS: Windows + - first: + Facebook: Win + second: + enabled: 0 + settings: + CPU: None + - first: + Facebook: Win64 + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Linux + second: + enabled: 1 + settings: + CPU: None + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: LinuxUniversal + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: OSXUniversal + second: + enabled: 0 + settings: + CPU: x86_64 + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: None + - first: + Standalone: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Editor/Scripts.meta b/Packages/com.autodesk.fbx/Editor/Scripts.meta new file mode 100644 index 0000000000..3ad3f29e17 --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: cc5a382e618cb3e48b81637ebdf3f259 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Editor/Scripts/PostProcessAddToBuild.cs b/Packages/com.autodesk.fbx/Editor/Scripts/PostProcessAddToBuild.cs new file mode 100644 index 0000000000..4bc85531e6 --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Scripts/PostProcessAddToBuild.cs @@ -0,0 +1,121 @@ +#if FBXSDK_RUNTIME +using UnityEngine; +using UnityEditor; +using UnityEditor.Callbacks; +using System.IO; + +namespace Autodesk.Fbx +{ + /// + /// Add UnityFbxSdkNative plugin to build after build is complete. + /// + public class PostProcessAddToBuild + { + private const string fbxsdkNativePlugin = "UnityFbxSdkNative"; + private const string fbxsdkNativePluginPath = "Packages/com.autodesk.fbx/Editor/Plugins"; + + private const string fbxsdkNativePluginExtWin = ".dll"; + private const string fbxsdkNativePluginExtOSX = ".bundle"; + private const string fbxsdkNativePluginExtLinux = ".so"; + + private const string buildPluginPathWin = "{0}_Data/Plugins"; + private const string buildPluginPathOSX = "{0}.app/Contents/Plugins"; + private const string buildPluginPathLinux = "{0}_Data/Plugins/x86_64"; + + [PostProcessBuild(1)] + public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) + { + var buildPathWithoutExt = Path.ChangeExtension(pathToBuiltProject, null); + + string destPath = null; + string sourcePath = null; + string sourcePathExt = null; + switch (target) + { + case BuildTarget.StandaloneWindows64: + destPath = string.Format(buildPluginPathWin, buildPathWithoutExt); + sourcePathExt = fbxsdkNativePluginExtWin; + break; + case BuildTarget.StandaloneOSX: + destPath = string.Format(buildPluginPathOSX, buildPathWithoutExt); + // Since the bundle is technically a folder and not a file, need to copy the contents of the bundle + destPath = Path.Combine(destPath, fbxsdkNativePlugin + fbxsdkNativePluginExtOSX); + sourcePathExt = fbxsdkNativePluginExtOSX; + break; + case BuildTarget.StandaloneLinux64: + destPath = string.Format(buildPluginPathLinux, buildPathWithoutExt); + sourcePathExt = fbxsdkNativePluginExtLinux; + break; + default: + throw new System.PlatformNotSupportedException("FBX SDK not supported on Build Target: " + target); + } + + if (!string.IsNullOrEmpty(sourcePathExt)) + { + sourcePath = Path.Combine(fbxsdkNativePluginPath, fbxsdkNativePlugin + sourcePathExt); + } + + if (string.IsNullOrEmpty(destPath) || string.IsNullOrEmpty(sourcePath)) + { + Debug.LogWarningFormat("Failed to copy plugin {0} to build folder", fbxsdkNativePlugin); + return; + } + + if (!Directory.Exists(destPath)) + { + Directory.CreateDirectory(destPath); + } + + if (target == BuildTarget.StandaloneOSX) + { + // bundle is technically a folder and gives an error + // when you try to copy it as a file. + DirectoryCopy(sourcePath, destPath, true); + } + else { + destPath = Path.Combine(destPath, fbxsdkNativePlugin + sourcePathExt); + File.Copy(sourcePath, destPath); + } + } + + // Taken from: https://docs.microsoft.com/en-us/dotnet/standard/io/how-to-copy-directories + private static void DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs) + { + // Get the subdirectories for the specified directory. + DirectoryInfo dir = new DirectoryInfo(sourceDirName); + + if (!dir.Exists) + { + throw new DirectoryNotFoundException( + "Source directory does not exist or could not be found: " + + sourceDirName); + } + + DirectoryInfo[] dirs = dir.GetDirectories(); + // If the destination directory doesn't exist, create it. + if (!Directory.Exists(destDirName)) + { + Directory.CreateDirectory(destDirName); + } + + // Get the files in the directory and copy them to the new location. + FileInfo[] files = dir.GetFiles(); + foreach (FileInfo file in files) + { + string temppath = Path.Combine(destDirName, file.Name); + file.CopyTo(temppath, false); + } + + // If copying subdirectories, copy them and their contents to new location. + if (copySubDirs) + { + foreach (DirectoryInfo subdir in dirs) + { + string temppath = Path.Combine(destDirName, subdir.Name); + DirectoryCopy(subdir.FullName, temppath, copySubDirs); + } + } + } + } +} +#endif // FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Editor/Scripts/PostProcessAddToBuild.cs.meta b/Packages/com.autodesk.fbx/Editor/Scripts/PostProcessAddToBuild.cs.meta new file mode 100644 index 0000000000..2f9f38dcbc --- /dev/null +++ b/Packages/com.autodesk.fbx/Editor/Scripts/PostProcessAddToBuild.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 62deb3ed14a43dd4ca31fbed91e710a9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/LICENSE.md b/Packages/com.autodesk.fbx/LICENSE.md new file mode 100644 index 0000000000..dddf655043 --- /dev/null +++ b/Packages/com.autodesk.fbx/LICENSE.md @@ -0,0 +1,5 @@ +com.autodesk.fbx copyright © 2018 Unity Technologies ApS + +Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). + +Unless expressly provided otherwise, the Software under this license is made available strictly on an "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. diff --git a/Packages/com.autodesk.fbx/LICENSE.md.meta b/Packages/com.autodesk.fbx/LICENSE.md.meta new file mode 100644 index 0000000000..09a3d4c88e --- /dev/null +++ b/Packages/com.autodesk.fbx/LICENSE.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7ca9385f85229e7468f58a63ae414552 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/README.md b/Packages/com.autodesk.fbx/README.md new file mode 100644 index 0000000000..5286ad64ae --- /dev/null +++ b/Packages/com.autodesk.fbx/README.md @@ -0,0 +1,16 @@ +FBX SDK C# Bindings +=================== + +This package contains only a subset of the Autodesk® FBX® SDK, and is designed to work in Unity only. + +How to Access Bindings in Code +------------------------------- +All the bindings are located under the FbxSdk namespace, +and are accessed almost the same way as in C++. +e.g. FbxManager::Create() in C++ becomes FbxSdk.FbxManager.Create() in C# + + +How to Access Global Variables and Functions +-------------------------------------------- +All global variables and functions are in Globals.cs, in the Globals class under the FbxSdk namespace. +e.g. if we want to access the IOSROOT variable, we would do FbxSdk.Globals.IOSROOT diff --git a/Packages/com.autodesk.fbx/README.md.meta b/Packages/com.autodesk.fbx/README.md.meta new file mode 100644 index 0000000000..5facdbe392 --- /dev/null +++ b/Packages/com.autodesk.fbx/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9f155cfe5bc380541a05a1d74e740809 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime.meta b/Packages/com.autodesk.fbx/Runtime.meta new file mode 100644 index 0000000000..2a408d19eb --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5de5bf5533f85854288f97ca2c08822c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Autodesk.Fbx.asmdef b/Packages/com.autodesk.fbx/Runtime/Autodesk.Fbx.asmdef new file mode 100644 index 0000000000..b5626999ce --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Autodesk.Fbx.asmdef @@ -0,0 +1,13 @@ +{ + "name": "Autodesk.Fbx", + "references": [], + "optionalUnityReferences": [], + "includePlatforms": [ + "Editor", + "LinuxStandalone64", + "macOSStandalone", + "WindowsStandalone64" + ], + "excludePlatforms": [], + "allowUnsafeCode": false +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Autodesk.Fbx.asmdef.meta b/Packages/com.autodesk.fbx/Runtime/Autodesk.Fbx.asmdef.meta new file mode 100644 index 0000000000..21cd829fa7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Autodesk.Fbx.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2b82e46c4ca0a4eb697ab8ccdfb39af1 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts.meta b/Packages/com.autodesk.fbx/Runtime/Scripts.meta new file mode 100644 index 0000000000..709e469d44 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a19610b3dcb8d484282f75b81592104a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/EFbxType.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/EFbxType.cs new file mode 100644 index 0000000000..3e3726ec05 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/EFbxType.cs @@ -0,0 +1,45 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public enum EFbxType { + eFbxUndefined, + eFbxChar, + eFbxUChar, + eFbxShort, + eFbxUShort, + eFbxUInt, + eFbxLongLong, + eFbxULongLong, + eFbxHalfFloat, + eFbxBool, + eFbxInt, + eFbxFloat, + eFbxDouble, + eFbxDouble2, + eFbxDouble3, + eFbxDouble4, + eFbxDouble4x4, + eFbxEnum = 17, + eFbxEnumM = -17, + eFbxString = 18, + eFbxTime, + eFbxReference, + eFbxBlob, + eFbxDistance, + eFbxDateTime, + eFbxTypeCount = 24 +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/EFbxType.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/EFbxType.cs.meta new file mode 100644 index 0000000000..7b472ef900 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/EFbxType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c353b2a15212245498f3817e19d4c91a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAMatrix.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAMatrix.cs new file mode 100644 index 0000000000..2c3f69f02e --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAMatrix.cs @@ -0,0 +1,273 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAMatrix : FbxDouble4x4 { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxAMatrix(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxAMatrix_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxAMatrix obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxAMatrix() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxAMatrix(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxAMatrix() : this(NativeMethods.new_FbxAMatrix__SWIG_0(), true) { + } + + public FbxAMatrix(FbxAMatrix pOther) : this(NativeMethods.new_FbxAMatrix__SWIG_1(FbxAMatrix.getCPtr(pOther)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAMatrix(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) : this(NativeMethods.new_FbxAMatrix__SWIG_2(pT, pR, pS), true) { + } + + public double Get(int pY, int pX) { + double ret = NativeMethods.FbxAMatrix_Get(swigCPtr, pY, pX); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 GetT() { + var ret = NativeMethods.FbxAMatrix_GetT(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 GetR() { + var ret = NativeMethods.FbxAMatrix_GetR(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxQuaternion GetQ() { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxAMatrix_GetQ(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 GetS() { + var ret = NativeMethods.FbxAMatrix_GetS(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 GetRow(int pY) { + var ret = NativeMethods.FbxAMatrix_GetRow(swigCPtr, pY); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 GetColumn(int pX) { + var ret = NativeMethods.FbxAMatrix_GetColumn(swigCPtr, pX); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetIdentity() { + NativeMethods.FbxAMatrix_SetIdentity(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetT(FbxVector4 pT) { + NativeMethods.FbxAMatrix_SetT(swigCPtr, pT); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetR(FbxVector4 pR) { + NativeMethods.FbxAMatrix_SetR(swigCPtr, pR); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetQ(FbxQuaternion pQ) { + NativeMethods.FbxAMatrix_SetQ(swigCPtr, FbxQuaternion.getCPtr(pQ)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetS(FbxVector4 pS) { + NativeMethods.FbxAMatrix_SetS(swigCPtr, pS); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTRS(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) { + NativeMethods.FbxAMatrix_SetTRS(swigCPtr, pT, pR, pS); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTQS(FbxVector4 pT, FbxQuaternion pQ, FbxVector4 pS) { + NativeMethods.FbxAMatrix_SetTQS(swigCPtr, pT, FbxQuaternion.getCPtr(pQ), pS); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + private FbxAMatrix operator_Scale(double pValue) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Scale(swigCPtr, pValue), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxAMatrix operator_InvScale(double pValue) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_InvScale(swigCPtr, pValue), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 MultT(FbxVector4 pVector4) { + var ret = NativeMethods.FbxAMatrix_MultT(swigCPtr, pVector4); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 MultR(FbxVector4 pVector4) { + var ret = NativeMethods.FbxAMatrix_MultR(swigCPtr, pVector4); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxQuaternion MultQ(FbxQuaternion pQuaternion) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxAMatrix_MultQ(swigCPtr, FbxQuaternion.getCPtr(pQuaternion)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 MultS(FbxVector4 pVector4) { + var ret = NativeMethods.FbxAMatrix_MultS(swigCPtr, pVector4); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxAMatrix operator_Negate() { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Negate(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxAMatrix operator_Mul(FbxAMatrix pOther) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_operator_Mul(swigCPtr, FbxAMatrix.getCPtr(pOther)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix Inverse() { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Inverse(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix Transpose() { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Transpose(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix Slerp(FbxAMatrix pOther, double pWeight) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxAMatrix_Slerp(swigCPtr, FbxAMatrix.getCPtr(pOther), pWeight), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private bool _equals(FbxAMatrix pOther) { + bool ret = NativeMethods.FbxAMatrix__equals(swigCPtr, FbxAMatrix.getCPtr(pOther)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsIdentity(double pThreshold) { + bool ret = NativeMethods.FbxAMatrix_IsIdentity__SWIG_0(swigCPtr, pThreshold); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsIdentity() { + bool ret = NativeMethods.FbxAMatrix_IsIdentity__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxAMatrix operator - (FbxAMatrix a) { + return a.operator_Negate(); + } + + public static FbxAMatrix operator * (FbxAMatrix a, double b) { + return a.operator_Scale(b); + } + public static FbxAMatrix operator * (double a, FbxAMatrix b) { + return b.operator_Scale(a); + } + + public static FbxAMatrix operator / (FbxAMatrix a, double b) { + return a.operator_InvScale(b); + } + + public static FbxAMatrix operator * (FbxAMatrix a, FbxAMatrix b) { + return a.operator_Mul(b); + } + + public bool Equals(FbxAMatrix other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxAMatrix; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxAMatrix).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxAMatrix a, FbxAMatrix b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxAMatrix a, FbxAMatrix b) { + return !(a == b); + } + + public override int GetHashCode() { + int ret = NativeMethods.FbxAMatrix_GetHashCode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAMatrix.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAMatrix.cs.meta new file mode 100644 index 0000000000..394cc2baf3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAMatrix.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5df12f93eac2f43898ad760c073ec6dd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurve.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurve.cs new file mode 100644 index 0000000000..8fc55cbf4f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurve.cs @@ -0,0 +1,172 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAnimCurve : FbxAnimCurveBase { + internal FbxAnimCurve(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public static FbxAnimCurve Create(FbxScene pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurve_Create(FbxScene.getCPtr(pContainer), pName); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual void KeyModifyBegin() { + NativeMethods.FbxAnimCurve_KeyModifyBegin(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeyModifyEnd() { + NativeMethods.FbxAnimCurve_KeyModifyEnd(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual int KeyAdd(FbxTime pTime, ref int pLast) { + int ret = NativeMethods.FbxAnimCurve_KeyAdd__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), ref pLast); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual int KeyAdd(FbxTime pTime) { + int ret = NativeMethods.FbxAnimCurve_KeyAdd__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode, float pWeight0, float pWeight1, float pVelocity0, float pVelocity1) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_0(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode, pWeight0, pWeight1, pVelocity0, pVelocity1); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode, float pWeight0, float pWeight1, float pVelocity0) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_1(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode, pWeight0, pWeight1, pVelocity0); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode, float pWeight0, float pWeight1) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_2(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode, pWeight0, pWeight1); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode, float pWeight0) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_3(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode, pWeight0); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1, FbxAnimCurveDef.EWeightedMode pTangentWeightMode) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_4(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1, (int)pTangentWeightMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0, float pData1) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_5(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0, pData1); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode, float pData0) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_6(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode, pData0); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation, FbxAnimCurveDef.ETangentMode pTangentMode) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_7(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation, (int)pTangentMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue, FbxAnimCurveDef.EInterpolationType pInterpolation) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_8(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue, (int)pInterpolation); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual void KeySet(int pKeyIndex, FbxTime pTime, float pValue) { + NativeMethods.FbxAnimCurve_KeySet__SWIG_9(swigCPtr, pKeyIndex, FbxTime.getCPtr(pTime), pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual FbxAnimCurveDef.ETangentMode KeyGetTangentMode(int pKeyIndex, bool pIncludeOverrides) { + FbxAnimCurveDef.ETangentMode ret = (FbxAnimCurveDef.ETangentMode)NativeMethods.FbxAnimCurve_KeyGetTangentMode__SWIG_0(swigCPtr, pKeyIndex, pIncludeOverrides); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual FbxAnimCurveDef.ETangentMode KeyGetTangentMode(int pKeyIndex) { + FbxAnimCurveDef.ETangentMode ret = (FbxAnimCurveDef.ETangentMode)NativeMethods.FbxAnimCurve_KeyGetTangentMode__SWIG_1(swigCPtr, pKeyIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual void KeySetTangentMode(int pKeyIndex, FbxAnimCurveDef.ETangentMode pTangent) { + NativeMethods.FbxAnimCurve_KeySetTangentMode(swigCPtr, pKeyIndex, (int)pTangent); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual FbxAnimCurveKey KeyGet(int pIndex) { + FbxAnimCurveKey ret = new FbxAnimCurveKey(NativeMethods.FbxAnimCurve_KeyGet(swigCPtr, pIndex), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual float KeyGetValue(int pKeyIndex) { + float ret = NativeMethods.FbxAnimCurve_KeyGetValue(swigCPtr, pKeyIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxAnimCurve other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxAnimCurve; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxAnimCurve).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxAnimCurve a, FbxAnimCurve b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxAnimCurve a, FbxAnimCurve b) { + return !(a == b); + } + + public static new FbxAnimCurve Create(FbxManager pManager, string pName) { + throw new System.NotImplementedException("FbxAnimCurve can only be created with a scene as argument."); + } + public static new FbxAnimCurve Create(FbxObject pContainer, string pName) { + throw new System.NotImplementedException("FbxAnimCurve can only be created with a scene as argument."); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurve.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurve.cs.meta new file mode 100644 index 0000000000..f5ced368b7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurve.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1efa8d6b8ca22438abd22afa899641fc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveBase.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveBase.cs new file mode 100644 index 0000000000..45bd5a3a4a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveBase.cs @@ -0,0 +1,76 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAnimCurveBase : FbxObject { + internal FbxAnimCurveBase(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public virtual int KeyGetCount() { + int ret = NativeMethods.FbxAnimCurveBase_KeyGetCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual FbxTime KeyGetTime(int arg0) { + FbxTime ret = new FbxTime(NativeMethods.FbxAnimCurveBase_KeyGetTime(swigCPtr, arg0), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxAnimCurveBase other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxAnimCurveBase; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxAnimCurveBase).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxAnimCurveBase a, FbxAnimCurveBase b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxAnimCurveBase a, FbxAnimCurveBase b) { + return !(a == b); + } + + public static new FbxAnimCurveBase Create(FbxManager pManager, string pName) { + throw new System.NotImplementedException("FbxAnimCurveBase is abstract; create FbxAnimCurve instead"); + } + public static new FbxAnimCurveBase Create(FbxObject pContainer, string pName) { + throw new System.NotImplementedException("FbxAnimCurveBase is abstract; create FbxAnimCurve instead"); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveBase.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveBase.cs.meta new file mode 100644 index 0000000000..da6d280d42 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1d746988b2a3a4e1c97762612b292ee0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveDef.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveDef.cs new file mode 100644 index 0000000000..f77f68a26e --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveDef.cs @@ -0,0 +1,102 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public static class FbxAnimCurveDef { + // virtual void Dispose() { } + + public static float sDEFAULT_WEIGHT { + get { + float ret = NativeMethods.FbxAnimCurveDef_sDEFAULT_WEIGHT_get(); + return ret; + } + } + + public static float sMIN_WEIGHT { + get { + float ret = NativeMethods.FbxAnimCurveDef_sMIN_WEIGHT_get(); + return ret; + } + } + + public static float sMAX_WEIGHT { + get { + float ret = NativeMethods.FbxAnimCurveDef_sMAX_WEIGHT_get(); + return ret; + } + } + + public static float sDEFAULT_VELOCITY { + get { + float ret = NativeMethods.FbxAnimCurveDef_sDEFAULT_VELOCITY_get(); + return ret; + } + } + + public enum ETangentMode { + eTangentAuto = 0x00000100, + eTangentTCB = 0x00000200, + eTangentUser = 0x00000400, + eTangentGenericBreak = 0x00000800, + eTangentBreak = eTangentGenericBreak|eTangentUser, + eTangentAutoBreak = eTangentGenericBreak|eTangentAuto, + eTangentGenericClamp = 0x00001000, + eTangentGenericTimeIndependent = 0x00002000, + eTangentGenericClampProgressive = 0x00004000|eTangentGenericTimeIndependent + } + + public enum EInterpolationType { + eInterpolationConstant = 0x00000002, + eInterpolationLinear = 0x00000004, + eInterpolationCubic = 0x00000008 + } + + public enum EWeightedMode { + eWeightedNone = 0x00000000, + eWeightedRight = 0x01000000, + eWeightedNextLeft = 0x02000000, + eWeightedAll = eWeightedRight|eWeightedNextLeft + } + + public enum EVelocityMode { + eVelocityNone = 0x00000000, + eVelocityRight = 0x10000000, + eVelocityNextLeft = 0x20000000, + eVelocityAll = eVelocityRight|eVelocityNextLeft + } + + public enum ETangentVisibility { + eTangentShowNone = 0x00000000, + eTangentShowLeft = 0x00100000, + eTangentShowRight = 0x00200000, + eTangentShowBoth = eTangentShowLeft|eTangentShowRight + } + + public enum EDataIndex { + eRightSlope = 0, + eNextLeftSlope = 1, + eWeights = 2, + eRightWeight = 2, + eNextLeftWeight = 3, + eVelocity = 4, + eRightVelocity = 4, + eNextLeftVelocity = 5, + eTCBTension = 0, + eTCBContinuity = 1, + eTCBBias = 2 + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveDef.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveDef.cs.meta new file mode 100644 index 0000000000..f1c42a2cdf --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveDef.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f55da9345195482ca83fe318ad2915b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveFilterUnroll.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveFilterUnroll.cs new file mode 100644 index 0000000000..a3bf1d4f87 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveFilterUnroll.cs @@ -0,0 +1,80 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAnimCurveFilterUnroll : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxAnimCurveFilterUnroll(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxAnimCurveFilterUnroll obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxAnimCurveFilterUnroll() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxAnimCurveFilterUnroll(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxAnimCurveFilterUnroll() : this(NativeMethods.new_FbxAnimCurveFilterUnroll(), true) { + } + + public bool NeedApply(FbxAnimCurveNode pCurveNode, FbxStatus pStatus) { + bool ret = NativeMethods.FbxAnimCurveFilterUnroll_NeedApply__SWIG_0(swigCPtr, FbxAnimCurveNode.getCPtr(pCurveNode), FbxStatus.getCPtr(pStatus)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool NeedApply(FbxAnimCurveNode pCurveNode) { + bool ret = NativeMethods.FbxAnimCurveFilterUnroll_NeedApply__SWIG_1(swigCPtr, FbxAnimCurveNode.getCPtr(pCurveNode)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Apply(FbxAnimCurveNode pCurveNode, FbxStatus pStatus) { + bool ret = NativeMethods.FbxAnimCurveFilterUnroll_Apply__SWIG_0(swigCPtr, FbxAnimCurveNode.getCPtr(pCurveNode), FbxStatus.getCPtr(pStatus)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Apply(FbxAnimCurveNode pCurveNode) { + bool ret = NativeMethods.FbxAnimCurveFilterUnroll_Apply__SWIG_1(swigCPtr, FbxAnimCurveNode.getCPtr(pCurveNode)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Reset() { + NativeMethods.FbxAnimCurveFilterUnroll_Reset(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveFilterUnroll.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveFilterUnroll.cs.meta new file mode 100644 index 0000000000..3205658c59 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveFilterUnroll.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: af681896f89964e9a97b826f041e13e1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveKey.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveKey.cs new file mode 100644 index 0000000000..d5ab558c19 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveKey.cs @@ -0,0 +1,131 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAnimCurveKey : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxAnimCurveKey(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxAnimCurveKey obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxAnimCurveDef.ETangentMode GetTangentMode(bool pIncludeOverrides) { + FbxAnimCurveDef.ETangentMode ret = (FbxAnimCurveDef.ETangentMode)NativeMethods.FbxAnimCurveKey_GetTangentMode__SWIG_0(swigCPtr, pIncludeOverrides); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurveDef.ETangentMode GetTangentMode() { + FbxAnimCurveDef.ETangentMode ret = (FbxAnimCurveDef.ETangentMode)NativeMethods.FbxAnimCurveKey_GetTangentMode__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetTangentMode(FbxAnimCurveDef.ETangentMode pTangentMode) { + NativeMethods.FbxAnimCurveKey_SetTangentMode(swigCPtr, (int)pTangentMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAnimCurveDef.EWeightedMode GetTangentWeightMode() { + FbxAnimCurveDef.EWeightedMode ret = (FbxAnimCurveDef.EWeightedMode)NativeMethods.FbxAnimCurveKey_GetTangentWeightMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetTangentWeightMode(FbxAnimCurveDef.EWeightedMode pTangentWeightMode, FbxAnimCurveDef.EWeightedMode pMask) { + NativeMethods.FbxAnimCurveKey_SetTangentWeightMode__SWIG_0(swigCPtr, (int)pTangentWeightMode, (int)pMask); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTangentWeightMode(FbxAnimCurveDef.EWeightedMode pTangentWeightMode) { + NativeMethods.FbxAnimCurveKey_SetTangentWeightMode__SWIG_1(swigCPtr, (int)pTangentWeightMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTangentWeightAndAdjustTangent(FbxAnimCurveDef.EDataIndex pIndex, double pWeight) { + NativeMethods.FbxAnimCurveKey_SetTangentWeightAndAdjustTangent(swigCPtr, (int)pIndex, pWeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAnimCurveDef.EVelocityMode GetTangentVelocityMode() { + FbxAnimCurveDef.EVelocityMode ret = (FbxAnimCurveDef.EVelocityMode)NativeMethods.FbxAnimCurveKey_GetTangentVelocityMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetTangentVelocityMode(FbxAnimCurveDef.EVelocityMode pTangentVelocityMode, FbxAnimCurveDef.EVelocityMode pMask) { + NativeMethods.FbxAnimCurveKey_SetTangentVelocityMode__SWIG_0(swigCPtr, (int)pTangentVelocityMode, (int)pMask); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTangentVelocityMode(FbxAnimCurveDef.EVelocityMode pTangentVelocityMode) { + NativeMethods.FbxAnimCurveKey_SetTangentVelocityMode__SWIG_1(swigCPtr, (int)pTangentVelocityMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public float GetDataFloat(FbxAnimCurveDef.EDataIndex pIndex) { + float ret = NativeMethods.FbxAnimCurveKey_GetDataFloat(swigCPtr, (int)pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDataFloat(FbxAnimCurveDef.EDataIndex pIndex, float pValue) { + NativeMethods.FbxAnimCurveKey_SetDataFloat(swigCPtr, (int)pIndex, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTangentVisibility(FbxAnimCurveDef.ETangentVisibility pVisibility) { + NativeMethods.FbxAnimCurveKey_SetTangentVisibility(swigCPtr, (int)pVisibility); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAnimCurveDef.ETangentVisibility GetTangentVisibility() { + FbxAnimCurveDef.ETangentVisibility ret = (FbxAnimCurveDef.ETangentVisibility)NativeMethods.FbxAnimCurveKey_GetTangentVisibility(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetBreak(bool pVal) { + NativeMethods.FbxAnimCurveKey_SetBreak(swigCPtr, pVal); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetBreak() { + bool ret = NativeMethods.FbxAnimCurveKey_GetBreak(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveKey.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveKey.cs.meta new file mode 100644 index 0000000000..4baa32623c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveKey.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 47b6f197e5944c31aa34409dd6fa8c3f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveNode.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveNode.cs new file mode 100644 index 0000000000..d8d76361ca --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveNode.cs @@ -0,0 +1,202 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAnimCurveNode : FbxObject { + internal FbxAnimCurveNode(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxAnimCurveNode Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxAnimCurveNode Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsAnimated(bool pRecurse) { + bool ret = NativeMethods.FbxAnimCurveNode_IsAnimated__SWIG_0(swigCPtr, pRecurse); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsAnimated() { + bool ret = NativeMethods.FbxAnimCurveNode_IsAnimated__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetAnimationInterval(FbxTimeSpan pTimeInterval) { + bool ret = NativeMethods.FbxAnimCurveNode_GetAnimationInterval(swigCPtr, FbxTimeSpan.getCPtr(pTimeInterval)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsComposite() { + bool ret = NativeMethods.FbxAnimCurveNode_IsComposite(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxAnimCurveNode CreateTypedCurveNode(FbxProperty pProperty, FbxScene pScene) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_CreateTypedCurveNode(FbxProperty.getCPtr(pProperty), FbxScene.getCPtr(pScene)); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public uint GetChannelsCount() { + uint ret = NativeMethods.FbxAnimCurveNode_GetChannelsCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetChannelIndex(string pChannelName) { + int ret = NativeMethods.FbxAnimCurveNode_GetChannelIndex(swigCPtr, pChannelName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetChannelName(int pChannelId) { + string ret = NativeMethods.FbxAnimCurveNode_GetChannelName(swigCPtr, pChannelId); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve CreateCurve(string pCurveNodeName, string pChannel) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_CreateCurve__SWIG_0(swigCPtr, pCurveNodeName, pChannel); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve CreateCurve(string pCurveNodeName, uint pChannelId) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_CreateCurve__SWIG_1(swigCPtr, pCurveNodeName, pChannelId); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve CreateCurve(string pCurveNodeName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_CreateCurve__SWIG_2(swigCPtr, pCurveNodeName); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetCurveCount(uint pChannelId, string pCurveNodeName) { + int ret = NativeMethods.FbxAnimCurveNode_GetCurveCount__SWIG_0(swigCPtr, pChannelId, pCurveNodeName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetCurveCount(uint pChannelId) { + int ret = NativeMethods.FbxAnimCurveNode_GetCurveCount__SWIG_1(swigCPtr, pChannelId); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve GetCurve(uint pChannelId, uint pId, string pCurveNodeName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_GetCurve__SWIG_0(swigCPtr, pChannelId, pId, pCurveNodeName); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve GetCurve(uint pChannelId, uint pId) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_GetCurve__SWIG_1(swigCPtr, pChannelId, pId); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve GetCurve(uint pChannelId) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimCurveNode_GetCurve__SWIG_2(swigCPtr, pChannelId); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxAnimCurveNode other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxAnimCurveNode; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxAnimCurveNode).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxAnimCurveNode a, FbxAnimCurveNode b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxAnimCurveNode a, FbxAnimCurveNode b) { + return !(a == b); + } + + public bool AddChannel(string pChnlName, float pValue) { + bool ret = NativeMethods.FbxAnimCurveNode_AddChannel(swigCPtr, pChnlName, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetChannelValue(string pChnlName, float pValue) { + NativeMethods.FbxAnimCurveNode_SetChannelValue__SWIG_2(swigCPtr, pChnlName, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetChannelValue(uint pChnlId, float pValue) { + NativeMethods.FbxAnimCurveNode_SetChannelValue__SWIG_3(swigCPtr, pChnlId, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public float GetChannelValue(string pChnlName, float pInitVal) { + float ret = NativeMethods.FbxAnimCurveNode_GetChannelValue__SWIG_2(swigCPtr, pChnlName, pInitVal); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public float GetChannelValue(uint pChnlId, float pInitVal) { + float ret = NativeMethods.FbxAnimCurveNode_GetChannelValue__SWIG_3(swigCPtr, pChnlId, pInitVal); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveNode.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveNode.cs.meta new file mode 100644 index 0000000000..54f0accd0d --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimCurveNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7af29ccd4b54d4bcf894448cf1a55099 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimLayer.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimLayer.cs new file mode 100644 index 0000000000..881f1a2dbf --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimLayer.cs @@ -0,0 +1,71 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAnimLayer : FbxCollection { + internal FbxAnimLayer(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxAnimLayer Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimLayer_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxAnimLayer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimLayer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxAnimLayer Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimLayer_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxAnimLayer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimLayer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxAnimLayer other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxAnimLayer; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxAnimLayer).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxAnimLayer a, FbxAnimLayer b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxAnimLayer a, FbxAnimLayer b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimLayer.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimLayer.cs.meta new file mode 100644 index 0000000000..04ec97e5bc --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimLayer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c8adf342fb1024782b4075c309e991c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimStack.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimStack.cs new file mode 100644 index 0000000000..dabca91d93 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimStack.cs @@ -0,0 +1,90 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAnimStack : FbxCollection { + internal FbxAnimStack(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxAnimStack Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimStack_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxAnimStack ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimStack(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxAnimStack Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxAnimStack_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxAnimStack ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimStack(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyString Description { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxAnimStack_Description_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxTimeSpan GetLocalTimeSpan() { + FbxTimeSpan ret = new FbxTimeSpan(NativeMethods.FbxAnimStack_GetLocalTimeSpan(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetLocalTimeSpan(FbxTimeSpan pTimeSpan) { + NativeMethods.FbxAnimStack_SetLocalTimeSpan(swigCPtr, FbxTimeSpan.getCPtr(pTimeSpan)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxAnimStack other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxAnimStack; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxAnimStack).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxAnimStack a, FbxAnimStack b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxAnimStack a, FbxAnimStack b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimStack.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimStack.cs.meta new file mode 100644 index 0000000000..4310725496 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAnimStack.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 861cbcaf0a75e41ce9e9b00422f3051d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAxisSystem.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAxisSystem.cs new file mode 100644 index 0000000000..5b827ad90f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAxisSystem.cs @@ -0,0 +1,205 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxAxisSystem : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxAxisSystem(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxAxisSystem obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxAxisSystem() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxAxisSystem(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxAxisSystem() : this(NativeMethods.new_FbxAxisSystem__SWIG_0(), true) { + } + + public FbxAxisSystem(EUpVector pUpVector, EFrontVector pFrontVector, FbxAxisSystem.ECoordSystem pCoorSystem) : this(NativeMethods.new_FbxAxisSystem__SWIG_1((int)pUpVector, (int)pFrontVector, (int)pCoorSystem), true) { + } + + public FbxAxisSystem(FbxAxisSystem pAxisSystem) : this(NativeMethods.new_FbxAxisSystem__SWIG_2(FbxAxisSystem.getCPtr(pAxisSystem)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAxisSystem(FbxAxisSystem.EPreDefinedAxisSystem pAxisSystem) : this(NativeMethods.new_FbxAxisSystem__SWIG_3((int)pAxisSystem), true) { + } + + private bool _equals(FbxAxisSystem pAxisSystem) { + bool ret = NativeMethods.FbxAxisSystem__equals(swigCPtr, FbxAxisSystem.getCPtr(pAxisSystem)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxAxisSystem MayaZUp { + get { + FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxAxisSystem_MayaZUp_get(), false); + return ret; + } + } + + public static FbxAxisSystem MayaYUp { + get { + FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxAxisSystem_MayaYUp_get(), false); + return ret; + } + } + + public static FbxAxisSystem Max { + get { + FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxAxisSystem_Max_get(), false); + return ret; + } + } + + public static FbxAxisSystem Motionbuilder { + get { + FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxAxisSystem_Motionbuilder_get(), false); + return ret; + } + } + + public static FbxAxisSystem OpenGL { + get { + FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxAxisSystem_OpenGL_get(), false); + return ret; + } + } + + public static FbxAxisSystem DirectX { + get { + FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxAxisSystem_DirectX_get(), false); + return ret; + } + } + + public static FbxAxisSystem Lightwave { + get { + FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxAxisSystem_Lightwave_get(), false); + return ret; + } + } + + public void DeepConvertScene(FbxScene pScene) { + NativeMethods.FbxAxisSystem_DeepConvertScene(swigCPtr, FbxScene.getCPtr(pScene)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void ConvertScene(FbxScene pScene) { + NativeMethods.FbxAxisSystem_ConvertScene(swigCPtr, FbxScene.getCPtr(pScene)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAxisSystem.ECoordSystem GetCoorSystem() { + FbxAxisSystem.ECoordSystem ret = (FbxAxisSystem.ECoordSystem)NativeMethods.FbxAxisSystem_GetCoorSystem(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public enum EUpVector { + eXAxis = 1, eXAxisDown = -1, + eYAxis = 2, eYAxisDown = -2, + eZAxis = 3, eZAxisDown = -3, + }; + public enum EFrontVector { + eParityEven = 1, eParityEvenNegative = -1, + eParityOdd = 2, eParityOddNegative = -2, + }; + + public EUpVector GetUpVector() { + EUpVector result = (EUpVector)NativeMethods.FbxAxisSystem_GetUpVector(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();; + return result; + } + + public EFrontVector GetFrontVector() { + EFrontVector result = (EFrontVector)NativeMethods.FbxAxisSystem_GetFrontVector(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve();; + return result; + } + + public bool Equals(FbxAxisSystem other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxAxisSystem; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxAxisSystem).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxAxisSystem a, FbxAxisSystem b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxAxisSystem a, FbxAxisSystem b) { + return !(a == b); + } + + public override int GetHashCode() { + int ret = NativeMethods.FbxAxisSystem_GetHashCode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public enum ECoordSystem { + eRightHanded, + eLeftHanded + } + + public enum EPreDefinedAxisSystem { + eMayaZUp, + eMayaYUp, + eMax, + eMotionBuilder, + eOpenGL, + eDirectX, + eLightwave + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAxisSystem.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAxisSystem.cs.meta new file mode 100644 index 0000000000..6e3fad0153 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxAxisSystem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 950a31935368d49f59166c47a38dbb1c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTable.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTable.cs new file mode 100644 index 0000000000..2f97c1494d --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTable.cs @@ -0,0 +1,95 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxBindingTable : FbxBindingTableBase { + internal FbxBindingTable(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxBindingTable Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxBindingTable_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxBindingTable ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBindingTable(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxBindingTable Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxBindingTable_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxBindingTable ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBindingTable(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyString DescRelativeURL { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxBindingTable_DescRelativeURL_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString DescAbsoluteURL { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxBindingTable_DescAbsoluteURL_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString DescTAG { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxBindingTable_DescTAG_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxBindingTable other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxBindingTable; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxBindingTable).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxBindingTable a, FbxBindingTable b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxBindingTable a, FbxBindingTable b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTable.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTable.cs.meta new file mode 100644 index 0000000000..d67b8e0cba --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b05b462869f0e48b2ab5bd44bf251bff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableBase.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableBase.cs new file mode 100644 index 0000000000..bfb4c95d08 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableBase.cs @@ -0,0 +1,63 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxBindingTableBase : FbxObject { + internal FbxBindingTableBase(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public FbxBindingTableEntry AddNewEntry() { + FbxBindingTableEntry ret = new FbxBindingTableEntry(NativeMethods.FbxBindingTableBase_AddNewEntry(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxBindingTableBase other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxBindingTableBase; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxBindingTableBase).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxBindingTableBase a, FbxBindingTableBase b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxBindingTableBase a, FbxBindingTableBase b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableBase.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableBase.cs.meta new file mode 100644 index 0000000000..dfe3c1f356 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4c4d8af364eb14c128cb66127b44ce3c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableEntry.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableEntry.cs new file mode 100644 index 0000000000..0cfc8255a9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableEntry.cs @@ -0,0 +1,44 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxBindingTableEntry : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxBindingTableEntry(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxBindingTableEntry obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableEntry.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableEntry.cs.meta new file mode 100644 index 0000000000..7e450dd569 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBindingTableEntry.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5f726efa8171b4ad2ac94a2f39c017c7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShape.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShape.cs new file mode 100644 index 0000000000..1cc8ff6cff --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShape.cs @@ -0,0 +1,110 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxBlendShape : FbxDeformer { + internal FbxBlendShape(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxBlendShape Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShape_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxBlendShape Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShape_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SetGeometry(FbxGeometry pGeometry) { + bool ret = NativeMethods.FbxBlendShape_SetGeometry(swigCPtr, FbxGeometry.getCPtr(pGeometry)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxGeometry GetGeometry() { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShape_GetGeometry(swigCPtr); + FbxGeometry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometry(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool AddBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel) { + bool ret = NativeMethods.FbxBlendShape_AddBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxBlendShapeChannel RemoveBlendShapeChannel(FbxBlendShapeChannel pBlendShapeChannel) { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShape_RemoveBlendShapeChannel(swigCPtr, FbxBlendShapeChannel.getCPtr(pBlendShapeChannel)); + FbxBlendShapeChannel ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetBlendShapeChannelCount() { + int ret = NativeMethods.FbxBlendShape_GetBlendShapeChannelCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxBlendShapeChannel GetBlendShapeChannel(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShape_GetBlendShapeChannel(swigCPtr, pIndex); + FbxBlendShapeChannel ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxBlendShape other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxBlendShape; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxBlendShape).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxBlendShape a, FbxBlendShape b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxBlendShape a, FbxBlendShape b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShape.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShape.cs.meta new file mode 100644 index 0000000000..719de81ad4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShape.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d785c46df19794ae9abd0994ec1796d2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShapeChannel.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShapeChannel.cs new file mode 100644 index 0000000000..98aa72b5bd --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShapeChannel.cs @@ -0,0 +1,130 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxBlendShapeChannel : FbxSubDeformer { + internal FbxBlendShapeChannel(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxBlendShapeChannel Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxBlendShapeChannel ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxBlendShapeChannel Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxBlendShapeChannel ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShapeChannel(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble DeformPercent { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxBlendShapeChannel_DeformPercent_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public bool SetBlendShapeDeformer(FbxBlendShape pBlendShape) { + bool ret = NativeMethods.FbxBlendShapeChannel_SetBlendShapeDeformer(swigCPtr, FbxBlendShape.getCPtr(pBlendShape)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxBlendShape GetBlendShapeDeformer() { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_GetBlendShapeDeformer(swigCPtr); + FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool AddTargetShape(FbxShape pShape, double pFullDeformPercent) { + bool ret = NativeMethods.FbxBlendShapeChannel_AddTargetShape__SWIG_0(swigCPtr, FbxShape.getCPtr(pShape), pFullDeformPercent); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool AddTargetShape(FbxShape pShape) { + bool ret = NativeMethods.FbxBlendShapeChannel_AddTargetShape__SWIG_1(swigCPtr, FbxShape.getCPtr(pShape)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxShape RemoveTargetShape(FbxShape pShape) { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_RemoveTargetShape(swigCPtr, FbxShape.getCPtr(pShape)); + FbxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetTargetShapeCount() { + int ret = NativeMethods.FbxBlendShapeChannel_GetTargetShapeCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxShape GetTargetShape(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxBlendShapeChannel_GetTargetShape(swigCPtr, pIndex); + FbxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetTargetShapeIndex(FbxShape pShape) { + int ret = NativeMethods.FbxBlendShapeChannel_GetTargetShapeIndex(swigCPtr, FbxShape.getCPtr(pShape)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxBlendShapeChannel other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxBlendShapeChannel; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxBlendShapeChannel).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxBlendShapeChannel a, FbxBlendShapeChannel b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxBlendShapeChannel a, FbxBlendShapeChannel b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShapeChannel.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShapeChannel.cs.meta new file mode 100644 index 0000000000..d847562d3b --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxBlendShapeChannel.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2678b2c014d704d3a896e621ee361c8e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCamera.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCamera.cs new file mode 100644 index 0000000000..3373c2344c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCamera.cs @@ -0,0 +1,252 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxCamera : FbxNodeAttribute { + internal FbxCamera(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxCamera Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxCamera_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxCamera ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxCamera(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxCamera Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxCamera_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxCamera ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxCamera(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetAspect(FbxCamera.EAspectRatioMode pRatioMode, double pWidth, double pHeight) { + NativeMethods.FbxCamera_SetAspect(swigCPtr, (int)pRatioMode, pWidth, pHeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxCamera.EAspectRatioMode GetAspectRatioMode() { + FbxCamera.EAspectRatioMode ret = (FbxCamera.EAspectRatioMode)NativeMethods.FbxCamera_GetAspectRatioMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetNearPlane(double pDistance) { + NativeMethods.FbxCamera_SetNearPlane(swigCPtr, pDistance); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetNearPlane() { + double ret = NativeMethods.FbxCamera_GetNearPlane(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetFarPlane(double pDistance) { + NativeMethods.FbxCamera_SetFarPlane(swigCPtr, pDistance); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetFarPlane() { + double ret = NativeMethods.FbxCamera_GetFarPlane(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetApertureMode(FbxCamera.EApertureMode pMode) { + NativeMethods.FbxCamera_SetApertureMode(swigCPtr, (int)pMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxCamera.EApertureMode GetApertureMode() { + FbxCamera.EApertureMode ret = (FbxCamera.EApertureMode)NativeMethods.FbxCamera_GetApertureMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetApertureWidth(double pWidth) { + NativeMethods.FbxCamera_SetApertureWidth(swigCPtr, pWidth); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetApertureWidth() { + double ret = NativeMethods.FbxCamera_GetApertureWidth(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetApertureHeight(double pHeight) { + NativeMethods.FbxCamera_SetApertureHeight(swigCPtr, pHeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetApertureHeight() { + double ret = NativeMethods.FbxCamera_GetApertureHeight(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double ComputeFocalLength(double pAngleOfView) { + double ret = NativeMethods.FbxCamera_ComputeFocalLength(swigCPtr, pAngleOfView); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble AspectWidth { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxCamera_AspectWidth_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble AspectHeight { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxCamera_AspectHeight_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyEGateFit GateFit { + get { + FbxPropertyEGateFit ret = new FbxPropertyEGateFit(NativeMethods.FbxCamera_GateFit_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble FieldOfView { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxCamera_FieldOfView_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble FocalLength { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxCamera_FocalLength_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble NearPlane { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxCamera_NearPlane_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble FilmAspectRatio { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxCamera_FilmAspectRatio_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble FilmOffsetX { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxCamera_FilmOffsetX_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble FilmOffsetY { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxCamera_FilmOffsetY_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyEProjectionType ProjectionType { + get { + FbxPropertyEProjectionType ret = new FbxPropertyEProjectionType(NativeMethods.FbxCamera_ProjectionType_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxCamera other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxCamera; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxCamera).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxCamera a, FbxCamera b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxCamera a, FbxCamera b) { + return !(a == b); + } + + public enum EProjectionType { + ePerspective, + eOrthogonal + } + + public enum EAspectRatioMode { + eWindowSize, + eFixedRatio, + eFixedResolution, + eFixedWidth, + eFixedHeight + } + + public enum EApertureMode { + eHorizAndVert, + eHorizontal, + eVertical, + eFocalLength + } + + public enum EGateFit { + eFitNone, + eFitVertical, + eFitHorizontal, + eFitFill, + eFitOverscan, + eFitStretch + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCamera.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCamera.cs.meta new file mode 100644 index 0000000000..d259805a62 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCamera.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 070411e8738fa4fbc8f89614946c4c06 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCluster.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCluster.cs new file mode 100644 index 0000000000..79b244c6a5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCluster.cs @@ -0,0 +1,150 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxCluster : FbxSubDeformer { + internal FbxCluster(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxCluster Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxCluster_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxCluster ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxCluster(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxCluster Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxCluster_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxCluster ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxCluster(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetLinkMode(FbxCluster.ELinkMode pMode) { + NativeMethods.FbxCluster_SetLinkMode(swigCPtr, (int)pMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxCluster.ELinkMode GetLinkMode() { + FbxCluster.ELinkMode ret = (FbxCluster.ELinkMode)NativeMethods.FbxCluster_GetLinkMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetLink(FbxNode pNode) { + NativeMethods.FbxCluster_SetLink(swigCPtr, FbxNode.getCPtr(pNode)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxNode GetLink() { + global::System.IntPtr cPtr = NativeMethods.FbxCluster_GetLink(swigCPtr); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void AddControlPointIndex(int pIndex, double pWeight) { + NativeMethods.FbxCluster_AddControlPointIndex(swigCPtr, pIndex, pWeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public int GetControlPointIndicesCount() { + int ret = NativeMethods.FbxCluster_GetControlPointIndicesCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetControlPointIWCount(int pCount) { + NativeMethods.FbxCluster_SetControlPointIWCount(swigCPtr, pCount); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTransformMatrix(FbxAMatrix pMatrix) { + NativeMethods.FbxCluster_SetTransformMatrix(swigCPtr, FbxAMatrix.getCPtr(pMatrix)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAMatrix GetTransformMatrix(FbxAMatrix pMatrix) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxCluster_GetTransformMatrix(swigCPtr, FbxAMatrix.getCPtr(pMatrix)), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetTransformLinkMatrix(FbxAMatrix pMatrix) { + NativeMethods.FbxCluster_SetTransformLinkMatrix(swigCPtr, FbxAMatrix.getCPtr(pMatrix)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAMatrix GetTransformLinkMatrix(FbxAMatrix pMatrix) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxCluster_GetTransformLinkMatrix(swigCPtr, FbxAMatrix.getCPtr(pMatrix)), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxCluster other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxCluster; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxCluster).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxCluster a, FbxCluster b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxCluster a, FbxCluster b) { + return !(a == b); + } + + public int GetControlPointIndexAt(int index) { + int ret = NativeMethods.FbxCluster_GetControlPointIndexAt(swigCPtr, index); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetControlPointWeightAt(int index) { + double ret = NativeMethods.FbxCluster_GetControlPointWeightAt(swigCPtr, index); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public enum ELinkMode { + eNormalize, + eAdditive, + eTotalOne + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCluster.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCluster.cs.meta new file mode 100644 index 0000000000..621720f0f0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCluster.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1b8c04dac83884783bfd9e20c6bc12e9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCollection.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCollection.cs new file mode 100644 index 0000000000..d6c9bd2993 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCollection.cs @@ -0,0 +1,102 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxCollection : FbxObject { + internal FbxCollection(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxCollection Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxCollection_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxCollection ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxCollection(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxCollection Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxCollection_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxCollection ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxCollection(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual void Clear() { + NativeMethods.FbxCollection_Clear(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual bool AddMember(FbxObject pMember) { + bool ret = NativeMethods.FbxCollection_AddMember(swigCPtr, FbxObject.getCPtr(pMember)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetMemberCount() { + int ret = NativeMethods.FbxCollection_GetMemberCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxCollection other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxCollection; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxCollection).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxCollection a, FbxCollection b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxCollection a, FbxCollection b) { + return !(a == b); + } + + public FbxAnimLayer GetAnimLayerMember(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxCollection_GetAnimLayerMember__SWIG_0(swigCPtr, pIndex); + FbxAnimLayer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimLayer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimLayer GetAnimLayerMember() { + global::System.IntPtr cPtr = NativeMethods.FbxCollection_GetAnimLayerMember__SWIG_1(swigCPtr); + FbxAnimLayer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimLayer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCollection.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCollection.cs.meta new file mode 100644 index 0000000000..a15323f467 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxCollection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 177dd9be525754a54bead6b440a4764b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConnection.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConnection.cs new file mode 100644 index 0000000000..d05e08fe55 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConnection.cs @@ -0,0 +1,34 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public static class FbxConnection { + // virtual void Dispose() { } + + public enum EType { + eNone = 0, + eSystem = 1 << 0, + eUser = 1 << 1, + eSystemOrUser = eUser|eSystem, + eReference = 1 << 2, + eContains = 1 << 3, + eData = 1 << 4, + eLinkType = eReference|eContains|eData, + eDefault = eUser|eReference, + eUnidirectional = 1 << 7 + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConnection.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConnection.cs.meta new file mode 100644 index 0000000000..8fd7f54c37 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConnection.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 358032f4302d549ddafd46ef3634328d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraint.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraint.cs new file mode 100644 index 0000000000..5a0b97743a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraint.cs @@ -0,0 +1,139 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxConstraint : FbxObject { + internal FbxConstraint(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxConstraint Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraint_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxConstraint ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraint(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxConstraint Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraint_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxConstraint ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraint(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble Weight { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxConstraint_Weight_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool Active { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraint_Active_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool Lock { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraint_Lock_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public virtual FbxConstraint.EType GetConstraintType() { + FbxConstraint.EType ret = (FbxConstraint.EType)NativeMethods.FbxConstraint_GetConstraintType(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual FbxObject GetConstrainedObject() { + global::System.IntPtr cPtr = NativeMethods.FbxConstraint_GetConstrainedObject(swigCPtr); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual int GetConstraintSourceCount() { + int ret = NativeMethods.FbxConstraint_GetConstraintSourceCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual FbxObject GetConstraintSource(int arg0) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraint_GetConstraintSource(swigCPtr, arg0); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetSourceWeight(FbxObject pObject) { + double ret = NativeMethods.FbxConstraint_GetSourceWeight(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxConstraint other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxConstraint; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxConstraint).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxConstraint a, FbxConstraint b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxConstraint a, FbxConstraint b) { + return !(a == b); + } + + public enum EType { + eUnknown, + ePosition, + eRotation, + eScale, + eParent, + eSingleChainIK, + eAim, + eCharacter, + eCustom + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraint.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraint.cs.meta new file mode 100644 index 0000000000..2994b3eca1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraint.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5019e4ab265d04db5baa2569789c738c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintAim.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintAim.cs new file mode 100644 index 0000000000..11f8663326 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintAim.cs @@ -0,0 +1,171 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxConstraintAim : FbxConstraint { + internal FbxConstraintAim(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxConstraintAim Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintAim_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxConstraintAim ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintAim(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxConstraintAim Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintAim_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxConstraintAim ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintAim(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble3 RotationOffset { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintAim_RotationOffset_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyInt WorldUpType { + get { + FbxPropertyInt ret = new FbxPropertyInt(NativeMethods.FbxConstraintAim_WorldUpType_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 WorldUpVector { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintAim_WorldUpVector_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 UpVector { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintAim_UpVector_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 AimVector { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintAim_AimVector_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectX { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintAim_AffectX_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectY { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintAim_AffectY_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectZ { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintAim_AffectZ_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public void AddConstraintSource(FbxObject pObject, double pWeight) { + NativeMethods.FbxConstraintAim_AddConstraintSource__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), pWeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void AddConstraintSource(FbxObject pObject) { + NativeMethods.FbxConstraintAim_AddConstraintSource__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetConstrainedObject(FbxObject pObject) { + NativeMethods.FbxConstraintAim_SetConstrainedObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetWorldUpObject(FbxObject pObject) { + NativeMethods.FbxConstraintAim_SetWorldUpObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxObject GetWorldUpObject() { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintAim_GetWorldUpObject(swigCPtr); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxConstraintAim other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxConstraintAim; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxConstraintAim).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxConstraintAim a, FbxConstraintAim b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxConstraintAim a, FbxConstraintAim b) { + return !(a == b); + } + + public enum EWorldUp { + eAimAtSceneUp, + eAimAtObjectUp, + eAimAtObjectRotationUp, + eAimAtVector, + eAimAtNone, + eAimAtCount + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintAim.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintAim.cs.meta new file mode 100644 index 0000000000..2505021756 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintAim.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e2307470d6de648769146a18bef26e60 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintParent.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintParent.cs new file mode 100644 index 0000000000..c823db6799 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintParent.cs @@ -0,0 +1,192 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxConstraintParent : FbxConstraint { + internal FbxConstraintParent(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxConstraintParent Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintParent_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxConstraintParent ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintParent(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxConstraintParent Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintParent_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxConstraintParent ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintParent(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyBool AffectTranslationX { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectTranslationX_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectTranslationY { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectTranslationY_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectTranslationZ { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectTranslationZ_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectRotationX { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectRotationX_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectRotationY { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectRotationY_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectRotationZ { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectRotationZ_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectScalingX { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectScalingX_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectScalingY { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectScalingY_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectScalingZ { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintParent_AffectScalingZ_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public void SetTranslationOffset(FbxObject pObject, FbxVector4 pTranslation) { + NativeMethods.FbxConstraintParent_SetTranslationOffset(swigCPtr, FbxObject.getCPtr(pObject), pTranslation); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetTranslationOffset(FbxObject pObject) { + var ret = NativeMethods.FbxConstraintParent_GetTranslationOffset(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetTranslationOffsetProperty(FbxObject pObject) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxConstraintParent_GetTranslationOffsetProperty(swigCPtr, FbxObject.getCPtr(pObject)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual void SetRotationOffset(FbxObject pObject, FbxVector4 pRotation) { + NativeMethods.FbxConstraintParent_SetRotationOffset(swigCPtr, FbxObject.getCPtr(pObject), pRotation); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetRotationOffset(FbxObject pObject) { + var ret = NativeMethods.FbxConstraintParent_GetRotationOffset(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetRotationOffsetProperty(FbxObject pObject) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxConstraintParent_GetRotationOffsetProperty(swigCPtr, FbxObject.getCPtr(pObject)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void AddConstraintSource(FbxObject pObject, double pWeight) { + NativeMethods.FbxConstraintParent_AddConstraintSource__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), pWeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void AddConstraintSource(FbxObject pObject) { + NativeMethods.FbxConstraintParent_AddConstraintSource__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetConstrainedObject(FbxObject pObject) { + NativeMethods.FbxConstraintParent_SetConstrainedObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxConstraintParent other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxConstraintParent; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxConstraintParent).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxConstraintParent a, FbxConstraintParent b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxConstraintParent a, FbxConstraintParent b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintParent.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintParent.cs.meta new file mode 100644 index 0000000000..fa17b96e32 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintParent.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 026453738381a4314b369aac42b4a93e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintPosition.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintPosition.cs new file mode 100644 index 0000000000..7145c3d1ee --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintPosition.cs @@ -0,0 +1,124 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxConstraintPosition : FbxConstraint { + internal FbxConstraintPosition(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxConstraintPosition Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintPosition_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxConstraintPosition ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintPosition(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxConstraintPosition Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintPosition_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxConstraintPosition ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintPosition(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyBool AffectX { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintPosition_AffectX_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectY { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintPosition_AffectY_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectZ { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintPosition_AffectZ_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Translation { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintPosition_Translation_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public void AddConstraintSource(FbxObject pObject, double pWeight) { + NativeMethods.FbxConstraintPosition_AddConstraintSource__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), pWeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void AddConstraintSource(FbxObject pObject) { + NativeMethods.FbxConstraintPosition_AddConstraintSource__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool RemoveConstraintSource(FbxObject pObject) { + bool ret = NativeMethods.FbxConstraintPosition_RemoveConstraintSource(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetConstrainedObject(FbxObject pObject) { + NativeMethods.FbxConstraintPosition_SetConstrainedObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxConstraintPosition other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxConstraintPosition; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxConstraintPosition).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxConstraintPosition a, FbxConstraintPosition b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxConstraintPosition a, FbxConstraintPosition b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintPosition.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintPosition.cs.meta new file mode 100644 index 0000000000..0baf584fdf --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintPosition.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ab6043e3582f344398a5ac7b2d4ccee2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintRotation.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintRotation.cs new file mode 100644 index 0000000000..70a15cada2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintRotation.cs @@ -0,0 +1,118 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxConstraintRotation : FbxConstraint { + internal FbxConstraintRotation(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxConstraintRotation Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintRotation_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxConstraintRotation ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintRotation(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxConstraintRotation Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintRotation_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxConstraintRotation ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintRotation(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyBool AffectX { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintRotation_AffectX_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectY { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintRotation_AffectY_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectZ { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintRotation_AffectZ_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Rotation { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintRotation_Rotation_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public void AddConstraintSource(FbxObject pObject, double pWeight) { + NativeMethods.FbxConstraintRotation_AddConstraintSource__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), pWeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void AddConstraintSource(FbxObject pObject) { + NativeMethods.FbxConstraintRotation_AddConstraintSource__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetConstrainedObject(FbxObject pObject) { + NativeMethods.FbxConstraintRotation_SetConstrainedObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxConstraintRotation other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxConstraintRotation; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxConstraintRotation).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxConstraintRotation a, FbxConstraintRotation b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxConstraintRotation a, FbxConstraintRotation b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintRotation.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintRotation.cs.meta new file mode 100644 index 0000000000..f7a8bbd01c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintRotation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6aff42940fda64911b4a26da411561c9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintScale.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintScale.cs new file mode 100644 index 0000000000..3b21a428fc --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintScale.cs @@ -0,0 +1,118 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxConstraintScale : FbxConstraint { + internal FbxConstraintScale(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxConstraintScale Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintScale_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxConstraintScale ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintScale(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxConstraintScale Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxConstraintScale_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxConstraintScale ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxConstraintScale(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyBool AffectX { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintScale_AffectX_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectY { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintScale_AffectY_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool AffectZ { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxConstraintScale_AffectZ_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Scaling { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxConstraintScale_Scaling_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public void AddConstraintSource(FbxObject pObject, double pWeight) { + NativeMethods.FbxConstraintScale_AddConstraintSource__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), pWeight); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void AddConstraintSource(FbxObject pObject) { + NativeMethods.FbxConstraintScale_AddConstraintSource__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetConstrainedObject(FbxObject pObject) { + NativeMethods.FbxConstraintScale_SetConstrainedObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxConstraintScale other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxConstraintScale; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxConstraintScale).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxConstraintScale a, FbxConstraintScale b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxConstraintScale a, FbxConstraintScale b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintScale.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintScale.cs.meta new file mode 100644 index 0000000000..fd57890996 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxConstraintScale.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c3da73df57c6743f38428a3641d1c396 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDataType.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDataType.cs new file mode 100644 index 0000000000..e94593d615 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDataType.cs @@ -0,0 +1,136 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxDataType : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxDataType(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxDataType obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxDataType() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxDataType(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxDataType() : this(NativeMethods.new_FbxDataType__SWIG_0(), true) { + } + + public FbxDataType(FbxDataType pDataType) : this(NativeMethods.new_FbxDataType__SWIG_1(FbxDataType.getCPtr(pDataType)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + private bool _equals(FbxDataType pDataType) { + bool ret = NativeMethods.FbxDataType__equals(swigCPtr, FbxDataType.getCPtr(pDataType)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Valid() { + bool ret = NativeMethods.FbxDataType_Valid(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Is(FbxDataType pDataType) { + bool ret = NativeMethods.FbxDataType_Is(swigCPtr, FbxDataType.getCPtr(pDataType)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public EFbxType ToEnum() { + EFbxType ret = (EFbxType)NativeMethods.FbxDataType_ToEnum(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetName() { + string ret = NativeMethods.FbxDataType_GetName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDataType(string pName, EFbxType pType) : this(NativeMethods.new_FbxDataType__SWIG_2(pName, (int)pType), true) { + } + + public FbxDataType(string pName, FbxDataType pDataType) : this(NativeMethods.new_FbxDataType__SWIG_3(pName, FbxDataType.getCPtr(pDataType)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxDataType(EFbxType pType) : this(NativeMethods.new_FbxDataType__SWIG_4((int)pType), true) { + } + + public bool Equals(FbxDataType other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxDataType; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxDataType).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxDataType a, FbxDataType b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxDataType a, FbxDataType b) { + return !(a == b); + } + + public override int GetHashCode() { return GetName().GetHashCode(); } + + public string GetNameForIO() { + string ret = NativeMethods.FbxDataType_GetNameForIO(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override string ToString() { + return GetName(); + } +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDataType.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDataType.cs.meta new file mode 100644 index 0000000000..9afb1c4333 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDataType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: caccccf6c4171441f804d367cc405f6f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDeformer.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDeformer.cs new file mode 100644 index 0000000000..e4a1744757 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDeformer.cs @@ -0,0 +1,84 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxDeformer : FbxObject { + internal FbxDeformer(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxDeformer Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxDeformer_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxDeformer Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxDeformer_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual FbxDeformer.EDeformerType GetDeformerType() { + FbxDeformer.EDeformerType ret = (FbxDeformer.EDeformerType)NativeMethods.FbxDeformer_GetDeformerType(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxDeformer other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxDeformer; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxDeformer).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxDeformer a, FbxDeformer b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxDeformer a, FbxDeformer b) { + return !(a == b); + } + + public enum EDeformerType { + eUnknown, + eSkin, + eBlendShape, + eVertexCache + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDeformer.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDeformer.cs.meta new file mode 100644 index 0000000000..734c1d661c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDeformer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3e002d2d5a5a94afbbb93e1bf6e77d3d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocument.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocument.cs new file mode 100644 index 0000000000..ca66d4e9fc --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocument.cs @@ -0,0 +1,83 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxDocument : FbxCollection { + internal FbxDocument(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxDocument Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxDocument_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDocument(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxDocument Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxDocument_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxDocument ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDocument(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDocumentInfo GetDocumentInfo() { + global::System.IntPtr cPtr = NativeMethods.FbxDocument_GetDocumentInfo(swigCPtr); + FbxDocumentInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDocumentInfo(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDocumentInfo(FbxDocumentInfo pSceneInfo) { + NativeMethods.FbxDocument_SetDocumentInfo(swigCPtr, FbxDocumentInfo.getCPtr(pSceneInfo)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxDocument other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxDocument; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxDocument).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxDocument a, FbxDocument b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxDocument a, FbxDocument b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocument.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocument.cs.meta new file mode 100644 index 0000000000..934c230477 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocument.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8687e3b09af824095b9a7e71b87e9182 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocumentInfo.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocumentInfo.cs new file mode 100644 index 0000000000..384578c35b --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocumentInfo.cs @@ -0,0 +1,244 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxDocumentInfo : FbxObject { + internal FbxDocumentInfo(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxDocumentInfo Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxDocumentInfo_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxDocumentInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDocumentInfo(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxDocumentInfo Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxDocumentInfo_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxDocumentInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDocumentInfo(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyString LastSavedUrl { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_LastSavedUrl_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString Url { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_Url_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxProperty Original { + get { + FbxProperty ret = new FbxProperty(NativeMethods.FbxDocumentInfo_Original_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString Original_ApplicationVendor { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_Original_ApplicationVendor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString Original_ApplicationName { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_Original_ApplicationName_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString Original_ApplicationVersion { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_Original_ApplicationVersion_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString Original_FileName { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_Original_FileName_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxProperty LastSaved { + get { + FbxProperty ret = new FbxProperty(NativeMethods.FbxDocumentInfo_LastSaved_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString LastSaved_ApplicationVendor { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_LastSaved_ApplicationVendor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString LastSaved_ApplicationName { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_LastSaved_ApplicationName_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString LastSaved_ApplicationVersion { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_LastSaved_ApplicationVersion_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString EmbeddedUrl { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxDocumentInfo_EmbeddedUrl_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string mTitle { + set { + NativeMethods.FbxDocumentInfo_mTitle_set(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + get { + string ret = NativeMethods.FbxDocumentInfo_mTitle_get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string mSubject { + set { + NativeMethods.FbxDocumentInfo_mSubject_set(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + get { + string ret = NativeMethods.FbxDocumentInfo_mSubject_get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string mAuthor { + set { + NativeMethods.FbxDocumentInfo_mAuthor_set(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + get { + string ret = NativeMethods.FbxDocumentInfo_mAuthor_get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string mKeywords { + set { + NativeMethods.FbxDocumentInfo_mKeywords_set(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + get { + string ret = NativeMethods.FbxDocumentInfo_mKeywords_get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string mRevision { + set { + NativeMethods.FbxDocumentInfo_mRevision_set(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + get { + string ret = NativeMethods.FbxDocumentInfo_mRevision_get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string mComment { + set { + NativeMethods.FbxDocumentInfo_mComment_set(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + get { + string ret = NativeMethods.FbxDocumentInfo_mComment_get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public void Clear() { + NativeMethods.FbxDocumentInfo_Clear(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxDocumentInfo other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxDocumentInfo; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxDocumentInfo).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxDocumentInfo a, FbxDocumentInfo b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxDocumentInfo a, FbxDocumentInfo b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocumentInfo.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocumentInfo.cs.meta new file mode 100644 index 0000000000..bceb5e84d1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDocumentInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6698435f709c84af7b7f57b9c192502b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDouble4x4.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDouble4x4.cs new file mode 100644 index 0000000000..ffe7ac556e --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDouble4x4.cs @@ -0,0 +1,164 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxDouble4x4 : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxDouble4x4(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxDouble4x4 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxDouble4x4() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxDouble4x4(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxDouble4x4() : this(NativeMethods.new_FbxDouble4x4__SWIG_0(), true) { + } + + public FbxDouble4x4(FbxDouble4 pValue) : this(NativeMethods.new_FbxDouble4x4__SWIG_1(pValue), true) { + } + + public FbxDouble4x4(FbxDouble4 pData0, FbxDouble4 pData1, FbxDouble4 pData2, FbxDouble4 pData3) : this(NativeMethods.new_FbxDouble4x4__SWIG_2(pData0, pData1, pData2, pData3), true) { + } + + private bool _equals(FbxDouble4x4 pVector) { + bool ret = NativeMethods.FbxDouble4x4__equals(swigCPtr, FbxDouble4x4.getCPtr(pVector)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble4x4(FbxDouble4x4 other) : this(NativeMethods.new_FbxDouble4x4__SWIG_3(FbxDouble4x4.getCPtr(other)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool Equals(FbxDouble4x4 other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxDouble4x4; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxDouble4x4).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxDouble4x4 a, FbxDouble4x4 b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxDouble4x4 a, FbxDouble4x4 b) { + return !(a == b); + } + + public override int GetHashCode() { + uint hash = 0; + for(int i = 0; i < 4; ++i) { + hash = (hash << (32 / 4)) | (hash >> (32 - (32 / 4))); + hash ^= (uint)this[i].GetHashCode(); + } + return (int)hash; + } + + public override string ToString() { + var builder = new System.Text.StringBuilder("FbxDouble4x4("); + for(int i = 0; i < 4; ++i) { + builder.Append(this[i].ToString()); + builder.Append(','); + } + builder.Replace(',', ')', builder.Length - 1, 1); + return builder.ToString(); + } + + private FbxDouble4 _get(int i) { + var ret = NativeMethods.FbxDouble4x4__get(swigCPtr, i); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private void _set(int i, FbxDouble4 v) { + NativeMethods.FbxDouble4x4__set(swigCPtr, i, v); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxDouble4 this[int index] { + get { + if (index < 0 || index >= 4) { + throw new System.ArgumentOutOfRangeException("index"); + } else { + return this._get(index); + } + } + set { + if (index < 0 || index >= 4) { + throw new System.ArgumentOutOfRangeException("index"); + } else { + this._set(index, value); + } + } + } + + public FbxDouble4 X { + get { return this._get(0); } + set { this._set(0, value); } + } + + public FbxDouble4 Y { + get { return this._get(1); } + set { this._set(1, value); } + } + + public FbxDouble4 Z { + get { return this._get(2); } + set { this._set(2, value); } + } + + public FbxDouble4 W { + get { return this._get(3); } + set { this._set(3, value); } + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDouble4x4.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDouble4x4.cs.meta new file mode 100644 index 0000000000..a4a7f14dff --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDouble4x4.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5d0ba208c10d943b082205e46e7e9168 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDoubleTemplates.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDoubleTemplates.cs new file mode 100644 index 0000000000..76ca0214fd --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDoubleTemplates.cs @@ -0,0 +1,527 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +#if UNITY_EDITOR || FBXSDK_RUNTIME +namespace Autodesk.Fbx +{ + /** + * The structs in this file are for optimized transfer. Their layout must + * be binary-compatible with the structs in the accompanying .h file. + * + * That allows passing these structs on the stack between C# and C++, rather than + * heap-allocating a class on either side, which is about 100x slower. + */ + public struct FbxDouble2: System.IEquatable { + public double X; + public double Y; + + public FbxDouble2(double X) { this.X = this.Y = X; } + public FbxDouble2(double X, double Y) { this.X = X; this.Y = Y; } + public FbxDouble2(FbxDouble2 other) { this.X = other.X; this.Y = other.Y; } + + public double this[int i] { + get { + switch(i) { + case 0: return X; + case 1: return Y; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + set { + switch(i) { + case 0: X = value; break; + case 1: Y = value; break; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + } + + public bool Equals(FbxDouble2 other) { + return X == other.X && Y == other.Y; + } + + public override bool Equals(object obj){ + if (obj is FbxDouble2) { + return this.Equals((FbxDouble2)obj); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxDouble2 a, FbxDouble2 b) { + return a.Equals(b); + } + + public static bool operator != (FbxDouble2 a, FbxDouble2 b) { + return !(a == b); + } + + public override int GetHashCode() { + uint hash = (uint)X.GetHashCode(); + hash = (hash << 16) | (hash >> 16); + hash ^= (uint)Y.GetHashCode(); + return (int)hash; + } + + public override string ToString() { + return string.Format("FbxDouble2({0},{1})", X, Y); + } + } + + public struct FbxDouble3: System.IEquatable { + public double X; + public double Y; + public double Z; + + public FbxDouble3(double X) { this.X = this.Y = this.Z = X; } + public FbxDouble3(double X, double Y, double Z) { this.X = X; this.Y = Y; this.Z = Z; } + public FbxDouble3(FbxDouble3 other) { this.X = other.X; this.Y = other.Y; this.Z = other.Z; } + + public double this[int i] { + get { + switch(i) { + case 0: return X; + case 1: return Y; + case 2: return Z; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + set { + switch(i) { + case 0: X = value; break; + case 1: Y = value; break; + case 2: Z = value; break; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + } + + public bool Equals(FbxDouble3 other) { + return X == other.X && Y == other.Y && Z == other.Z; + } + + public override bool Equals(object obj){ + if (obj is FbxDouble3) { + return this.Equals((FbxDouble3)obj); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxDouble3 a, FbxDouble3 b) { + return a.Equals(b); + } + + public static bool operator != (FbxDouble3 a, FbxDouble3 b) { + return !(a == b); + } + + public override int GetHashCode() { + uint hash = (uint)X.GetHashCode(); + hash = (hash << 11) | (hash >> 21); + hash ^= (uint)Y.GetHashCode(); + hash = (hash << 11) | (hash >> 21); + hash ^= (uint)Z.GetHashCode(); + return (int)hash; + } + + public override string ToString() { + return string.Format("FbxDouble3({0},{1},{2})", X, Y, Z); + } + } + + public struct FbxDouble4: System.IEquatable { + public double X; + public double Y; + public double Z; + public double W; + + public FbxDouble4(double X) { this.X = this.Y = this.Z = this.W = X; } + public FbxDouble4(double X, double Y, double Z, double W) { this.X = X; this.Y = Y; this.Z = Z; this.W = W; } + public FbxDouble4(FbxDouble4 other) { this.X = other.X; this.Y = other.Y; this.Z = other.Z; this.W = other.W; } + + public double this[int i] { + get { + switch(i) { + case 0: return X; + case 1: return Y; + case 2: return Z; + case 3: return W; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + set { + switch(i) { + case 0: X = value; break; + case 1: Y = value; break; + case 2: Z = value; break; + case 3: W = value; break; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + } + + public bool Equals(FbxDouble4 other) { + return X == other.X && Y == other.Y && Z == other.Z && W == other.W; + } + + public override bool Equals(object obj){ + if (obj is FbxDouble4) { + return this.Equals((FbxDouble4)obj); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxDouble4 a, FbxDouble4 b) { + return a.Equals(b); + } + + public static bool operator != (FbxDouble4 a, FbxDouble4 b) { + return !(a == b); + } + + public override int GetHashCode() { + uint hash = (uint)X.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)Y.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)Z.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)W.GetHashCode(); + return (int)hash; + } + + public override string ToString() { + return string.Format("FbxDouble4({0},{1},{2},{3})", X, Y, Z, W); + } + } + + public struct FbxColor: System.IEquatable { + public double mRed; + public double mGreen; + public double mBlue; + public double mAlpha; + + public FbxColor(double red, double green, double blue, double alpha = 1) { this.mRed = red; this.mGreen = green; this.mBlue = blue; this.mAlpha = alpha; } + public FbxColor(FbxDouble3 rgb, double alpha = 1) : this (rgb.X, rgb.Y, rgb.Z, alpha) { } + public FbxColor(FbxDouble4 rgba) : this (rgba.X, rgba.Y, rgba.Z, rgba.W) { } + + public bool IsValid() { + return Globals.IsValidColor(this); + } + + public void Set(double red, double green, double blue, double alpha = 1) { + this.mRed = red; this.mGreen = green; this.mBlue = blue; this.mAlpha = alpha; + } + + public double this[int i] { + get { + switch(i) { + case 0: return mRed; + case 1: return mGreen; + case 2: return mBlue; + case 3: return mAlpha; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + set { + switch(i) { + case 0: mRed = value; break; + case 1: mGreen = value; break; + case 2: mBlue = value; break; + case 3: mAlpha = value; break; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + } + + public bool Equals(FbxColor other) { + return mRed == other.mRed && mGreen == other.mGreen && mBlue == other.mBlue && mAlpha == other.mAlpha; + } + + public override bool Equals(object obj){ + if (obj is FbxColor) { + return this.Equals((FbxColor)obj); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxColor a, FbxColor b) { + return a.Equals(b); + } + + public static bool operator != (FbxColor a, FbxColor b) { + return !(a == b); + } + + public override int GetHashCode() { + uint hash = (uint)mRed.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)mGreen.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)mBlue.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)mAlpha.GetHashCode(); + return (int)hash; + } + + public override string ToString() { + return string.Format("FbxColor({0},{1},{2},{3})", mRed, mGreen, mBlue, mAlpha); + } + } + + public struct FbxVector2: System.IEquatable { + public double X; + public double Y; + + public FbxVector2(double X) { this.X = this.Y = X; } + public FbxVector2(double X, double Y) { this.X = X; this.Y = Y; } + public FbxVector2(FbxDouble2 other) { this.X = other.X; this.Y = other.Y; } + public FbxVector2(FbxVector2 other) { this.X = other.X; this.Y = other.Y; } + + public double this[int i] { + get { + switch(i) { + case 0: return X; + case 1: return Y; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + set { + switch(i) { + case 0: X = value; break; + case 1: Y = value; break; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + } + + public bool Equals(FbxVector2 other) { + return X == other.X && Y == other.Y; + } + + public override bool Equals(object obj){ + if (obj is FbxVector2) { + return this.Equals((FbxVector2)obj); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxVector2 a, FbxVector2 b) { + return a.Equals(b); + } + + public static bool operator != (FbxVector2 a, FbxVector2 b) { + return !(a == b); + } + + public override int GetHashCode() { + uint hash = (uint)X.GetHashCode(); + hash = (hash << 16) | (hash >> 16); + hash ^= (uint)Y.GetHashCode(); + return (int)hash; + } + + public override string ToString() { + return string.Format("FbxVector2({0},{1})", X, Y); + } + + // Add/sub a scalar. We add/sub each coordinate. + public static FbxVector2 operator + (FbxVector2 a, double b) { + return new FbxVector2(a.X + b, a.Y + b); + } + public static FbxVector2 operator - (FbxVector2 a, double b) { + return new FbxVector2(a.X - b, a.Y - b); + } + + // Scale. + public static FbxVector2 operator * (FbxVector2 a, double b) { + return new FbxVector2(a.X * b, a.Y * b); + } + public static FbxVector2 operator * (double a, FbxVector2 b) { + return new FbxVector2(a * b.X, a * b.Y); + } + public static FbxVector2 operator / (FbxVector2 a, double b) { + return new FbxVector2(a.X / b, a.Y / b); + } + + // Negate. + public static FbxVector2 operator - (FbxVector2 a) { + return new FbxVector2(-a.X, -a.Y); + } + + // Add/sub vector. + public static FbxVector2 operator + (FbxVector2 a, FbxVector2 b) { + return new FbxVector2(a.X + b.X, a.Y + b.Y); + } + public static FbxVector2 operator - (FbxVector2 a, FbxVector2 b) { + return new FbxVector2(a.X - b.X, a.Y - b.Y); + } + + // Memberwise multiplication -- NOT dotproduct + public static FbxVector2 operator * (FbxVector2 a, FbxVector2 b) { + return new FbxVector2(a.X * b.X, a.Y * b.Y); + } + public static FbxVector2 operator / (FbxVector2 a, FbxVector2 b) { + return new FbxVector2(a.X / b.X, a.Y / b.Y); + } + + public double DotProduct(FbxVector2 other) { + return this.X * other.X + this.Y * other.Y; + } + + public double SquareLength() { + return X * X + Y * Y; + } + + public double Length() { + return System.Math.Sqrt(SquareLength()); + } + + public double Distance(FbxVector2 other) { + return (this - other).Length(); + } + } + + public struct FbxVector4: System.IEquatable { + public double X; + public double Y; + public double Z; + public double W; + + public FbxVector4(FbxVector4 other) { this.X = other.X; this.Y = other.Y; this.Z = other.Z; this.W = other.W; } + public FbxVector4(double X, double Y, double Z, double W = 1) { this.X = X; this.Y = Y; this.Z = Z; this.W = W; } + public FbxVector4(FbxDouble3 other) : this (other.X, other.Y, other.Z) { } + + public double this[int i] { + get { + switch(i) { + case 0: return X; + case 1: return Y; + case 2: return Z; + case 3: return W; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + set { + switch(i) { + case 0: X = value; break; + case 1: Y = value; break; + case 2: Z = value; break; + case 3: W = value; break; + default: throw new System.ArgumentOutOfRangeException("i"); + } + } + } + + public bool Equals(FbxVector4 other) { + return X == other.X && Y == other.Y && Z == other.Z && W == other.W; + } + + public override bool Equals(object obj){ + if (obj is FbxVector4) { + return this.Equals((FbxVector4)obj); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxVector4 a, FbxVector4 b) { + return a.Equals(b); + } + + public static bool operator != (FbxVector4 a, FbxVector4 b) { + return !(a == b); + } + + public override int GetHashCode() { + uint hash = (uint)X.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)Y.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)Z.GetHashCode(); + hash = (hash << 8) | (hash >> 24); + hash ^= (uint)W.GetHashCode(); + return (int)hash; + } + + public override string ToString() { + return string.Format("FbxVector4({0},{1},{2},{3})", X, Y, Z, W); + } + + // Add/sub a scalar. We add/sub each coordinate. + public static FbxVector4 operator + (FbxVector4 a, double b) { + return new FbxVector4(a.X + b, a.Y + b, a.Z + b, a.W + b); + } + public static FbxVector4 operator - (FbxVector4 a, double b) { + return new FbxVector4(a.X - b, a.Y - b, a.Z - b, a.W - b); + } + + // Scale. + public static FbxVector4 operator * (FbxVector4 a, double b) { + return new FbxVector4(a.X * b, a.Y * b, a.Z * b, a.W * b); + } + public static FbxVector4 operator * (double a, FbxVector4 b) { + // Note: this operator is not provided in C++ FBX SDK. + // But it's how any mathematician would write it. + return new FbxVector4(a * b.X, a * b.Y, a * b.Z, a * b.W); + } + public static FbxVector4 operator / (FbxVector4 a, double b) { + return new FbxVector4(a.X / b, a.Y / b, a.Z / b, a.W / b); + } + + // Negate. + public static FbxVector4 operator - (FbxVector4 a) { + return new FbxVector4(-a.X, -a.Y, -a.Z, -a.W); + } + + // Add/sub vector. + public static FbxVector4 operator + (FbxVector4 a, FbxVector4 b) { + return new FbxVector4(a.X + b.X, a.Y + b.Y, a.Z + b.Z, a.W + b.W); + } + public static FbxVector4 operator - (FbxVector4 a, FbxVector4 b) { + return new FbxVector4(a.X - b.X, a.Y - b.Y, a.Z - b.Z, a.W - b.W); + } + + // Memberwise multiplication -- NOT dotproduct + public static FbxVector4 operator * (FbxVector4 a, FbxVector4 b) { + return new FbxVector4(a.X * b.X, a.Y * b.Y, a.Z * b.Z, a.W * b.W); + } + public static FbxVector4 operator / (FbxVector4 a, FbxVector4 b) { + return new FbxVector4(a.X / b.X, a.Y / b.Y, a.Z / b.Z, a.W / b.W); + } + + // Dot product of the 3d vector, ignoring W. + public double DotProduct(FbxVector4 other) { + return X * other.X + Y * other.Y + Z * other.Z; + } + + // Cross product of the two 3d vectors, ignoring W. + public FbxVector4 CrossProduct(FbxVector4 other) { + return new FbxVector4( + Y * other.Z - Z * other.Y, + Z * other.X - X * other.Z, + X * other.Y - Y * other.X); + } + + // Length of the 3d vector, ignoring W. + public double SquareLength() { + return X * X + Y * Y + Z * Z; + } + + public double Length() { + return System.Math.Sqrt(SquareLength()); + } + + public double Distance(FbxVector4 other) { + return (this - other).Length(); + } + } +} +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDoubleTemplates.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDoubleTemplates.cs.meta new file mode 100644 index 0000000000..e4818c2abf --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxDoubleTemplates.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c7c6de2a9a7794c0ab9e85a30dcbfae1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEmitter.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEmitter.cs new file mode 100644 index 0000000000..394a2b4e7d --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEmitter.cs @@ -0,0 +1,84 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public abstract class FbxEmitter : System.IDisposable, System.IEquatable { + protected global::System.Runtime.InteropServices.HandleRef swigCPtr { get ; private set; } + + internal FbxEmitter(global::System.IntPtr cPtr, bool ignored) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxEmitter obj) { + return ((object)obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + ~FbxEmitter() { + Dispose(false); + } + protected void Dispose(bool disposing) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (disposing) { + Destroy(); + } + lock(this) { + NativeMethods.ReleaseWeakPointerHandle(swigCPtr); + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxEmitter other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxEmitter; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxEmitter).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxEmitter a, FbxEmitter b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxEmitter a, FbxEmitter b) { + return !(a == b); + } + + public abstract void Destroy(); + public abstract void Destroy(bool recursive); + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEmitter.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEmitter.cs.meta new file mode 100644 index 0000000000..2cddc7f873 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEmitter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d8d4ed958ba764edc99158d703f82906 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEntryView.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEntryView.cs new file mode 100644 index 0000000000..7973ba774b --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEntryView.cs @@ -0,0 +1,56 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxEntryView : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxEntryView(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxEntryView obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public virtual bool IsValid() { + bool ret = NativeMethods.FbxEntryView_IsValid(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual string EntryType() { + string ret = NativeMethods.FbxEntryView_EntryType(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEntryView.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEntryView.cs.meta new file mode 100644 index 0000000000..1494b5ff2a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEntryView.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2b632e70e71ac4edeb75ac40559150dc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEuler.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEuler.cs new file mode 100644 index 0000000000..3840b42bf2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEuler.cs @@ -0,0 +1,31 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public static class FbxEuler { + // virtual void Dispose() { } + + public enum EOrder { + eOrderXYZ, + eOrderXZY, + eOrderYZX, + eOrderYXZ, + eOrderZXY, + eOrderZYX, + eOrderSphericXYZ + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEuler.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEuler.cs.meta new file mode 100644 index 0000000000..e56a4cef98 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxEuler.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: be2ebcd3a3be24b18b733e6e2e6078f9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxExporter.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxExporter.cs new file mode 100644 index 0000000000..354624e3b7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxExporter.cs @@ -0,0 +1,122 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxExporter : FbxIOBase { + internal FbxExporter(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxExporter Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxExporter_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxExporter ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxExporter(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxExporter Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxExporter_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxExporter ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxExporter(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Export(FbxDocument pDocument) { + bool ret = NativeMethods.FbxExporter_Export(swigCPtr, FbxDocument.getCPtr(pDocument)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SetFileExportVersion(string pVersion) { + bool ret = NativeMethods.FbxExporter_SetFileExportVersion(swigCPtr, pVersion); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxIOFileHeaderInfo GetFileHeaderInfo() { + global::System.IntPtr cPtr = NativeMethods.FbxExporter_GetFileHeaderInfo(swigCPtr); + FbxIOFileHeaderInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOFileHeaderInfo(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxExporter other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxExporter; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxExporter).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxExporter a, FbxExporter b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxExporter a, FbxExporter b) { + return !(a == b); + } + + private void SetFbxSharpProgressCallback(FbxSharpProgressCallback callback) { + NativeMethods.FbxExporter_SetFbxSharpProgressCallback(swigCPtr, FbxSharpProgressCallback.getCPtr(callback)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + FbxSharpProgressCallback m_progressCallback; + + public void SetProgressCallback(Globals.FbxProgressCallback callback) { + if (m_progressCallback != null) { m_progressCallback.Dispose(); } + m_progressCallback = (callback == null) ? null : new FbxSharpProgressCallback.Wrapper(callback); + SetFbxSharpProgressCallback(m_progressCallback); + } + private int _getCurrentWritableVersionsLength() { + int ret = NativeMethods.FbxExporter__getCurrentWritableVersionsLength(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private string _getCurrentWritableVersionByIndex(int i) { + string ret = NativeMethods.FbxExporter__getCurrentWritableVersionByIndex(swigCPtr, i); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string[] GetCurrentWritableVersions() { + var versions = new string[_getCurrentWritableVersionsLength()]; + for(int i = 0, n = versions.Length; i < n; ++i) { + versions[i] = _getCurrentWritableVersionByIndex(i); + } + return versions; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxExporter.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxExporter.cs.meta new file mode 100644 index 0000000000..8ea49577a8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxExporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 01a0e5c5e497e4554a721914d5fd3d55 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxFileTexture.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxFileTexture.cs new file mode 100644 index 0000000000..8ee46573ad --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxFileTexture.cs @@ -0,0 +1,127 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxFileTexture : FbxTexture { + internal FbxFileTexture(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxFileTexture Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxFileTexture_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxFileTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxFileTexture(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxFileTexture Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxFileTexture_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxFileTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxFileTexture(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyBool UseMaterial { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxFileTexture_UseMaterial_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool UseMipMap { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxFileTexture_UseMipMap_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public bool SetFileName(string pName) { + bool ret = NativeMethods.FbxFileTexture_SetFileName(swigCPtr, pName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SetRelativeFileName(string pName) { + bool ret = NativeMethods.FbxFileTexture_SetRelativeFileName(swigCPtr, pName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetFileName() { + string ret = NativeMethods.FbxFileTexture_GetFileName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetRelativeFileName() { + string ret = NativeMethods.FbxFileTexture_GetRelativeFileName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetMaterialUse(FbxFileTexture.EMaterialUse pMaterialUse) { + NativeMethods.FbxFileTexture_SetMaterialUse(swigCPtr, (int)pMaterialUse); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxFileTexture.EMaterialUse GetMaterialUse() { + FbxFileTexture.EMaterialUse ret = (FbxFileTexture.EMaterialUse)NativeMethods.FbxFileTexture_GetMaterialUse(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxFileTexture other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxFileTexture; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxFileTexture).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxFileTexture a, FbxFileTexture b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxFileTexture a, FbxFileTexture b) { + return !(a == b); + } + + public enum EMaterialUse { + eModelMaterial, + eDefaultMaterial + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxFileTexture.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxFileTexture.cs.meta new file mode 100644 index 0000000000..389a85c07f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxFileTexture.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 94f5cb8f7ad3e4a9587c7c0e722503a7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometry.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometry.cs new file mode 100644 index 0000000000..a19f2cb329 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometry.cs @@ -0,0 +1,131 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxGeometry : FbxGeometryBase { + internal FbxGeometry(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxGeometry Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometry_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxGeometry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometry(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxGeometry Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometry_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxGeometry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometry(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int AddDeformer(FbxDeformer pDeformer) { + int ret = NativeMethods.FbxGeometry_AddDeformer(swigCPtr, FbxDeformer.getCPtr(pDeformer)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetDeformerCount() { + int ret = NativeMethods.FbxGeometry_GetDeformerCount__SWIG_0(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDeformer GetDeformer(int pIndex, FbxStatus pStatus) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_0(swigCPtr, pIndex, FbxStatus.getCPtr(pStatus)); + FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDeformer GetDeformer(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_1(swigCPtr, pIndex); + FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetDeformerCount(FbxDeformer.EDeformerType pType) { + int ret = NativeMethods.FbxGeometry_GetDeformerCount__SWIG_1(swigCPtr, (int)pType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDeformer GetDeformer(int pIndex, FbxDeformer.EDeformerType pType, FbxStatus pStatus) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_2(swigCPtr, pIndex, (int)pType, FbxStatus.getCPtr(pStatus)); + FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDeformer GetDeformer(int pIndex, FbxDeformer.EDeformerType pType) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetDeformer__SWIG_3(swigCPtr, pIndex, (int)pType); + FbxDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDeformer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxGeometry other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxGeometry; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxGeometry).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxGeometry a, FbxGeometry b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxGeometry a, FbxGeometry b) { + return !(a == b); + } + + public FbxBlendShape GetBlendShapeDeformer(int pIndex, FbxStatus pStatus) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetBlendShapeDeformer__SWIG_0(swigCPtr, pIndex, FbxStatus.getCPtr(pStatus)); + FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxBlendShape GetBlendShapeDeformer(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometry_GetBlendShapeDeformer__SWIG_1(swigCPtr, pIndex); + FbxBlendShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBlendShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometry.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometry.cs.meta new file mode 100644 index 0000000000..b1492f8c4d --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometry.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6a1db1be24bd54c248a9de7274b783a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometryBase.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometryBase.cs new file mode 100644 index 0000000000..14d76fdc86 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometryBase.cs @@ -0,0 +1,128 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxGeometryBase : FbxLayerContainer { + internal FbxGeometryBase(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxGeometryBase Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometryBase_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxGeometryBase ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometryBase(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxGeometryBase Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxGeometryBase_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxGeometryBase ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometryBase(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual void InitControlPoints(int pCount) { + NativeMethods.FbxGeometryBase_InitControlPoints(swigCPtr, pCount); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public virtual int GetControlPointsCount() { + int ret = NativeMethods.FbxGeometryBase_GetControlPointsCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble3 BBoxMin { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxGeometryBase_BBoxMin_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 BBoxMax { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxGeometryBase_BBoxMax_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public void ComputeBBox() { + NativeMethods.FbxGeometryBase_ComputeBBox(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxLayerElementNormal CreateElementNormal() { + global::System.IntPtr cPtr = NativeMethods.FbxGeometryBase_CreateElementNormal(swigCPtr); + FbxLayerElementNormal ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementNormal(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementTangent CreateElementTangent() { + global::System.IntPtr cPtr = NativeMethods.FbxGeometryBase_CreateElementTangent(swigCPtr); + FbxLayerElementTangent ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementTangent(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxGeometryBase other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxGeometryBase; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxGeometryBase).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxGeometryBase a, FbxGeometryBase b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxGeometryBase a, FbxGeometryBase b) { + return !(a == b); + } + + public void SetControlPointAt(FbxVector4 pCtrlPoint, int pIndex) { + NativeMethods.FbxGeometryBase_SetControlPointAt(swigCPtr, pCtrlPoint, pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetControlPointAt(int pIndex) { + var ret = NativeMethods.FbxGeometryBase_GetControlPointAt(swigCPtr, pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometryBase.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometryBase.cs.meta new file mode 100644 index 0000000000..a9ee3cdab5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGeometryBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 54909485f3d4b478491a60720828827b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGlobalSettings.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGlobalSettings.cs new file mode 100644 index 0000000000..e645a5a71c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGlobalSettings.cs @@ -0,0 +1,127 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxGlobalSettings : FbxObject { + internal FbxGlobalSettings(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxGlobalSettings Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxGlobalSettings_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxGlobalSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGlobalSettings(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxGlobalSettings Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxGlobalSettings_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxGlobalSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGlobalSettings(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetAxisSystem(FbxAxisSystem pAxisSystem) { + NativeMethods.FbxGlobalSettings_SetAxisSystem(swigCPtr, FbxAxisSystem.getCPtr(pAxisSystem)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAxisSystem GetAxisSystem() { + FbxAxisSystem ret = new FbxAxisSystem(NativeMethods.FbxGlobalSettings_GetAxisSystem(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetSystemUnit(FbxSystemUnit pOther) { + NativeMethods.FbxGlobalSettings_SetSystemUnit(swigCPtr, FbxSystemUnit.getCPtr(pOther)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxSystemUnit GetSystemUnit() { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxGlobalSettings_GetSystemUnit(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetAmbientColor(FbxColor pAmbientColor) { + NativeMethods.FbxGlobalSettings_SetAmbientColor(swigCPtr, pAmbientColor); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxColor GetAmbientColor() { + var ret = NativeMethods.FbxGlobalSettings_GetAmbientColor(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SetDefaultCamera(string pCameraName) { + bool ret = NativeMethods.FbxGlobalSettings_SetDefaultCamera(swigCPtr, pCameraName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetDefaultCamera() { + string ret = NativeMethods.FbxGlobalSettings_GetDefaultCamera(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetTimeMode(FbxTime.EMode pTimeMode) { + NativeMethods.FbxGlobalSettings_SetTimeMode(swigCPtr, (int)pTimeMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTime.EMode GetTimeMode() { + FbxTime.EMode ret = (FbxTime.EMode)NativeMethods.FbxGlobalSettings_GetTimeMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxGlobalSettings other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxGlobalSettings; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxGlobalSettings).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxGlobalSettings a, FbxGlobalSettings b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxGlobalSettings a, FbxGlobalSettings b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGlobalSettings.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGlobalSettings.cs.meta new file mode 100644 index 0000000000..b2e17d5e65 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxGlobalSettings.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7367610d9289244fdadbac9fe198dda1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOBase.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOBase.cs new file mode 100644 index 0000000000..f4c31e8cb2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOBase.cs @@ -0,0 +1,101 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxIOBase : FbxObject { + internal FbxIOBase(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxIOBase Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxIOBase_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxIOBase ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOBase(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxIOBase Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxIOBase_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxIOBase ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOBase(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual bool Initialize(string pFileName, int pFileFormat, FbxIOSettings pIOSettings) { + bool ret = NativeMethods.FbxIOBase_Initialize__SWIG_0(swigCPtr, pFileName, pFileFormat, FbxIOSettings.getCPtr(pIOSettings)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual bool Initialize(string pFileName, int pFileFormat) { + bool ret = NativeMethods.FbxIOBase_Initialize__SWIG_1(swigCPtr, pFileName, pFileFormat); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual bool Initialize(string pFileName) { + bool ret = NativeMethods.FbxIOBase_Initialize__SWIG_2(swigCPtr, pFileName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual string GetFileName() { + string ret = NativeMethods.FbxIOBase_GetFileName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxStatus GetStatus() { + FbxStatus ret = new FbxStatus(NativeMethods.FbxIOBase_GetStatus(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxIOBase other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxIOBase; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxIOBase).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxIOBase a, FbxIOBase b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxIOBase a, FbxIOBase b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOBase.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOBase.cs.meta new file mode 100644 index 0000000000..9b2ed0644e --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a288238bc2dfd4122b7c5512079673fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOFileHeaderInfo.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOFileHeaderInfo.cs new file mode 100644 index 0000000000..c918daa8f8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOFileHeaderInfo.cs @@ -0,0 +1,67 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxIOFileHeaderInfo : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxIOFileHeaderInfo(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxIOFileHeaderInfo obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxIOFileHeaderInfo() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxIOFileHeaderInfo(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxIOFileHeaderInfo() : this(NativeMethods.new_FbxIOFileHeaderInfo(), true) { + } + + public int mFileVersion { + get { + int ret = NativeMethods.FbxIOFileHeaderInfo_mFileVersion_get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public string mCreator { + get { + string ret = NativeMethods.FbxIOFileHeaderInfo_mCreator_get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOFileHeaderInfo.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOFileHeaderInfo.cs.meta new file mode 100644 index 0000000000..222107fda6 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOFileHeaderInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3a4306b8a7d724c37ab1fdfd559892e5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOPluginRegistry.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOPluginRegistry.cs new file mode 100644 index 0000000000..8aceb6b89c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOPluginRegistry.cs @@ -0,0 +1,50 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxIOPluginRegistry : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxIOPluginRegistry(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxIOPluginRegistry obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int FindWriterIDByDescription(string pDesc) { + int ret = NativeMethods.FbxIOPluginRegistry_FindWriterIDByDescription(swigCPtr, pDesc); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOPluginRegistry.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOPluginRegistry.cs.meta new file mode 100644 index 0000000000..da11a23d4e --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOPluginRegistry.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f10ce4b17dd654ef6adc2f6aead85c3b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOSettings.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOSettings.cs new file mode 100644 index 0000000000..c13a14e5f8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOSettings.cs @@ -0,0 +1,76 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxIOSettings : FbxObject { + internal FbxIOSettings(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxIOSettings Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxIOSettings_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxIOSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOSettings(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxIOSettings Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxIOSettings_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxIOSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOSettings(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetBoolProp(string pName, bool pValue) { + NativeMethods.FbxIOSettings_SetBoolProp(swigCPtr, pName, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxIOSettings other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxIOSettings; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxIOSettings).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxIOSettings a, FbxIOSettings b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxIOSettings a, FbxIOSettings b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOSettings.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOSettings.cs.meta new file mode 100644 index 0000000000..725ead5d52 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxIOSettings.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e5adfc8032cb845cea9444987be78f42 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImplementation.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImplementation.cs new file mode 100644 index 0000000000..aada978bfb --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImplementation.cs @@ -0,0 +1,125 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxImplementation : FbxObject { + internal FbxImplementation(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxImplementation Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxImplementation_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxImplementation ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxImplementation(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxImplementation Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxImplementation_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxImplementation ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxImplementation(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyString Language { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxImplementation_Language_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString LanguageVersion { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxImplementation_LanguageVersion_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString RenderAPI { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxImplementation_RenderAPI_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString RenderAPIVersion { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxImplementation_RenderAPIVersion_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString RootBindingName { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxImplementation_RootBindingName_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxBindingTable AddNewTable(string pTargetName, string pTargetType) { + global::System.IntPtr cPtr = NativeMethods.FbxImplementation_AddNewTable(swigCPtr, pTargetName, pTargetType); + FbxBindingTable ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBindingTable(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxBindingTable GetRootTable() { + global::System.IntPtr cPtr = NativeMethods.FbxImplementation_GetRootTable(swigCPtr); + FbxBindingTable ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxBindingTable(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxImplementation other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxImplementation; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxImplementation).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxImplementation a, FbxImplementation b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxImplementation a, FbxImplementation b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImplementation.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImplementation.cs.meta new file mode 100644 index 0000000000..9743ebdf5f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImplementation.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ddbc5749a2e60471fb8011125b5a1495 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImporter.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImporter.cs new file mode 100644 index 0000000000..850d8e6e6f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImporter.cs @@ -0,0 +1,119 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxImporter : FbxIOBase { + internal FbxImporter(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxImporter Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxImporter_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxImporter ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxImporter(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxImporter Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxImporter_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxImporter ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxImporter(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void GetFileVersion(out int pMajor, out int pMinor, out int pRevision) { + NativeMethods.FbxImporter_GetFileVersion(swigCPtr, out pMajor, out pMinor, out pRevision); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxIOFileHeaderInfo GetFileHeaderInfo() { + global::System.IntPtr cPtr = NativeMethods.FbxImporter_GetFileHeaderInfo(swigCPtr); + FbxIOFileHeaderInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOFileHeaderInfo(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Import(FbxDocument pDocument) { + bool ret = NativeMethods.FbxImporter_Import(swigCPtr, FbxDocument.getCPtr(pDocument)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetAnimStackCount() { + int ret = NativeMethods.FbxImporter_GetAnimStackCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetActiveAnimStackName() { + string ret = NativeMethods.FbxImporter_GetActiveAnimStackName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsFBX() { + bool ret = NativeMethods.FbxImporter_IsFBX(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxImporter other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxImporter; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxImporter).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxImporter a, FbxImporter b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxImporter a, FbxImporter b) { + return !(a == b); + } + + private void SetFbxSharpProgressCallback(FbxSharpProgressCallback callback) { + NativeMethods.FbxImporter_SetFbxSharpProgressCallback(swigCPtr, FbxSharpProgressCallback.getCPtr(callback)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + FbxSharpProgressCallback m_progressCallback; + + public void SetProgressCallback(Globals.FbxProgressCallback callback) { + if (m_progressCallback != null) { m_progressCallback.Dispose(); } + m_progressCallback = (callback == null) ? null : new FbxSharpProgressCallback.Wrapper(callback); + SetFbxSharpProgressCallback(m_progressCallback); + } +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImporter.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImporter.cs.meta new file mode 100644 index 0000000000..764b0b537c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxImporter.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fc4557cca60f5443da81423cecdee49f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayer.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayer.cs new file mode 100644 index 0000000000..4d1be49a2d --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayer.cs @@ -0,0 +1,162 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayer : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxLayer(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayer obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxLayerElementNormal GetNormals() { + global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetNormals(swigCPtr); + FbxLayerElementNormal ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementNormal(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementTangent GetTangents() { + global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetTangents(swigCPtr); + FbxLayerElementTangent ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementTangent(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementBinormal GetBinormals() { + global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetBinormals(swigCPtr); + FbxLayerElementBinormal ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementBinormal(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementMaterial GetMaterials() { + global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetMaterials(swigCPtr); + FbxLayerElementMaterial ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementMaterial(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementUV GetUVs(FbxLayerElement.EType pTypeIdentifier) { + global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetUVs__SWIG_0(swigCPtr, (int)pTypeIdentifier); + FbxLayerElementUV ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementUV(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementUV GetUVs() { + global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetUVs__SWIG_1(swigCPtr); + FbxLayerElementUV ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementUV(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementVertexColor GetVertexColors() { + global::System.IntPtr cPtr = NativeMethods.FbxLayer_GetVertexColors(swigCPtr); + FbxLayerElementVertexColor ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementVertexColor(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetNormals(FbxLayerElementNormal pNormals) { + NativeMethods.FbxLayer_SetNormals(swigCPtr, FbxLayerElementNormal.getCPtr(pNormals)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetBinormals(FbxLayerElementBinormal pBinormals) { + NativeMethods.FbxLayer_SetBinormals(swigCPtr, FbxLayerElementBinormal.getCPtr(pBinormals)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTangents(FbxLayerElementTangent pTangents) { + NativeMethods.FbxLayer_SetTangents(swigCPtr, FbxLayerElementTangent.getCPtr(pTangents)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMaterials(FbxLayerElementMaterial pMaterials) { + NativeMethods.FbxLayer_SetMaterials(swigCPtr, FbxLayerElementMaterial.getCPtr(pMaterials)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetUVs(FbxLayerElementUV pUVs, FbxLayerElement.EType pTypeIdentifier) { + NativeMethods.FbxLayer_SetUVs__SWIG_0(swigCPtr, FbxLayerElementUV.getCPtr(pUVs), (int)pTypeIdentifier); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetUVs(FbxLayerElementUV pUVs) { + NativeMethods.FbxLayer_SetUVs__SWIG_1(swigCPtr, FbxLayerElementUV.getCPtr(pUVs)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetVertexColors(FbxLayerElementVertexColor pVertexColors) { + NativeMethods.FbxLayer_SetVertexColors(swigCPtr, FbxLayerElementVertexColor.getCPtr(pVertexColors)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxLayer other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxLayer; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxLayer).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxLayer a, FbxLayer b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxLayer a, FbxLayer b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayer.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayer.cs.meta new file mode 100644 index 0000000000..4c10e55235 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4e2d39db9a77d4b53acd8c23237becae +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerContainer.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerContainer.cs new file mode 100644 index 0000000000..9f9d2c0001 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerContainer.cs @@ -0,0 +1,102 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerContainer : FbxNodeAttribute { + internal FbxLayerContainer(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxLayerContainer Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerContainer_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxLayerContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerContainer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxLayerContainer Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerContainer_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxLayerContainer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerContainer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int CreateLayer() { + int ret = NativeMethods.FbxLayerContainer_CreateLayer(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetLayerCount() { + int ret = NativeMethods.FbxLayerContainer_GetLayerCount__SWIG_0(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetLayerCount(FbxLayerElement.EType pType, bool pUVCount) { + int ret = NativeMethods.FbxLayerContainer_GetLayerCount__SWIG_1(swigCPtr, (int)pType, pUVCount); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetLayerCount(FbxLayerElement.EType pType) { + int ret = NativeMethods.FbxLayerContainer_GetLayerCount__SWIG_2(swigCPtr, (int)pType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayer GetLayer(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerContainer_GetLayer(swigCPtr, pIndex); + FbxLayer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxLayerContainer other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxLayerContainer; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxLayerContainer).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxLayerContainer a, FbxLayerContainer b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxLayerContainer a, FbxLayerContainer b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerContainer.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerContainer.cs.meta new file mode 100644 index 0000000000..962dd5bea6 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerContainer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd9fbf5f05604472c9cebd65d409b7f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElement.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElement.cs new file mode 100644 index 0000000000..c8b70ab430 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElement.cs @@ -0,0 +1,116 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElement : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxLayerElement(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElement obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public void SetMappingMode(FbxLayerElement.EMappingMode pMappingMode) { + NativeMethods.FbxLayerElement_SetMappingMode(swigCPtr, (int)pMappingMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetReferenceMode(FbxLayerElement.EReferenceMode pReferenceMode) { + NativeMethods.FbxLayerElement_SetReferenceMode(swigCPtr, (int)pReferenceMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxLayerElement.EMappingMode GetMappingMode() { + FbxLayerElement.EMappingMode ret = (FbxLayerElement.EMappingMode)NativeMethods.FbxLayerElement_GetMappingMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElement.EReferenceMode GetReferenceMode() { + FbxLayerElement.EReferenceMode ret = (FbxLayerElement.EReferenceMode)NativeMethods.FbxLayerElement_GetReferenceMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public enum EType { + eUnknown, + eNormal, + eBiNormal, + eTangent, + eMaterial, + ePolygonGroup, + eUV, + eVertexColor, + eSmoothing, + eVertexCrease, + eEdgeCrease, + eHole, + eUserData, + eVisibility, + eTextureDiffuse, + eTextureDiffuseFactor, + eTextureEmissive, + eTextureEmissiveFactor, + eTextureAmbient, + eTextureAmbientFactor, + eTextureSpecular, + eTextureSpecularFactor, + eTextureShininess, + eTextureNormalMap, + eTextureBump, + eTextureTransparency, + eTextureTransparencyFactor, + eTextureReflection, + eTextureReflectionFactor, + eTextureDisplacement, + eTextureDisplacementVector, + eTypeCount + } + + public enum EMappingMode { + eNone, + eByControlPoint, + eByPolygonVertex, + eByPolygon, + eByEdge, + eAllSame + } + + public enum EReferenceMode { + eDirect, + eIndex, + eIndexToDirect + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElement.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElement.cs.meta new file mode 100644 index 0000000000..5fd9e8f19a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElement.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4caad3255ea1745448149cfd462d2a04 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArray.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArray.cs new file mode 100644 index 0000000000..ab4af015db --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArray.cs @@ -0,0 +1,106 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementArray : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxLayerElementArray(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementArray obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxLayerElementArray() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxLayerElementArray(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxLayerElementArray(EFbxType pDataType) : this(NativeMethods.new_FbxLayerElementArray((int)pDataType), true) { + } + + public int GetCount() { + int ret = NativeMethods.FbxLayerElementArray_GetCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetCount(int pCount) { + NativeMethods.FbxLayerElementArray_SetCount(swigCPtr, pCount); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public int Add(int pItem) { + int ret = NativeMethods.FbxLayerElementArray_Add__SWIG_1(swigCPtr, pItem); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Add(FbxColor pItem) { + int ret = NativeMethods.FbxLayerElementArray_Add__SWIG_2(swigCPtr, pItem); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Add(FbxVector2 pItem) { + int ret = NativeMethods.FbxLayerElementArray_Add__SWIG_3(swigCPtr, pItem); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Add(FbxVector4 pItem) { + int ret = NativeMethods.FbxLayerElementArray_Add__SWIG_4(swigCPtr, pItem); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetAt(int pIndex, int pItem) { + NativeMethods.FbxLayerElementArray_SetAt__SWIG_1(swigCPtr, pIndex, pItem); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetAt(int pIndex, FbxColor pItem) { + NativeMethods.FbxLayerElementArray_SetAt__SWIG_2(swigCPtr, pIndex, pItem); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetAt(int pIndex, FbxVector2 pItem) { + NativeMethods.FbxLayerElementArray_SetAt__SWIG_3(swigCPtr, pIndex, pItem); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetAt(int pIndex, FbxVector4 pItem) { + NativeMethods.FbxLayerElementArray_SetAt__SWIG_4(swigCPtr, pIndex, pItem); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArray.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArray.cs.meta new file mode 100644 index 0000000000..88725e2853 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArray.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3e4301c3073394d80b39c3b85e293bcc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxColor.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxColor.cs new file mode 100644 index 0000000000..45864e9142 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxColor.cs @@ -0,0 +1,63 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementArrayTemplateFbxColor : FbxLayerElementArray { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementArrayTemplateFbxColor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementArrayTemplateFbxColor_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementArrayTemplateFbxColor obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxLayerElementArrayTemplateFbxColor() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxLayerElementArrayTemplateFbxColor(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + private FbxColor GetAtUnchecked(int pIndex) { + var ret = NativeMethods.FbxLayerElementArrayTemplateFbxColor_GetAtUnchecked(swigCPtr, pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxColor GetAt(int pIndex) { + if (pIndex < 0 || pIndex >= GetCount()) { + throw new System.ArgumentOutOfRangeException("pIndex"); + } + return GetAtUnchecked(pIndex); + } + + public FbxLayerElementArrayTemplateFbxColor() : this(NativeMethods.new_FbxLayerElementArrayTemplateFbxColor(), true) { + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxColor.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxColor.cs.meta new file mode 100644 index 0000000000..c7bf50aedb --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxColor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b13f52dd055f84224bc28c1c0f764e19 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxSurfaceMaterial.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxSurfaceMaterial.cs new file mode 100644 index 0000000000..192b744194 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxSurfaceMaterial.cs @@ -0,0 +1,64 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementArrayTemplateFbxSurfaceMaterial : FbxLayerElementArray { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementArrayTemplateFbxSurfaceMaterial(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementArrayTemplateFbxSurfaceMaterial_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementArrayTemplateFbxSurfaceMaterial obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxLayerElementArrayTemplateFbxSurfaceMaterial() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxLayerElementArrayTemplateFbxSurfaceMaterial(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + private FbxSurfaceMaterial GetAtUnchecked(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerElementArrayTemplateFbxSurfaceMaterial_GetAtUnchecked(swigCPtr, pIndex); + FbxSurfaceMaterial ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfaceMaterial(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxSurfaceMaterial GetAt(int pIndex) { + if (pIndex < 0 || pIndex >= GetCount()) { + throw new System.ArgumentOutOfRangeException("pIndex"); + } + return GetAtUnchecked(pIndex); + } + + public FbxLayerElementArrayTemplateFbxSurfaceMaterial() : this(NativeMethods.new_FbxLayerElementArrayTemplateFbxSurfaceMaterial(), true) { + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxSurfaceMaterial.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxSurfaceMaterial.cs.meta new file mode 100644 index 0000000000..91036f302b --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxSurfaceMaterial.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d21c48abdbb8148dd92e1d938731d1e6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector2.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector2.cs new file mode 100644 index 0000000000..0e8865f1c6 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector2.cs @@ -0,0 +1,63 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementArrayTemplateFbxVector2 : FbxLayerElementArray { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementArrayTemplateFbxVector2(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementArrayTemplateFbxVector2_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementArrayTemplateFbxVector2 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxLayerElementArrayTemplateFbxVector2() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxLayerElementArrayTemplateFbxVector2(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + private FbxVector2 GetAtUnchecked(int pIndex) { + var ret = NativeMethods.FbxLayerElementArrayTemplateFbxVector2_GetAtUnchecked(swigCPtr, pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector2 GetAt(int pIndex) { + if (pIndex < 0 || pIndex >= GetCount()) { + throw new System.ArgumentOutOfRangeException("pIndex"); + } + return GetAtUnchecked(pIndex); + } + + public FbxLayerElementArrayTemplateFbxVector2() : this(NativeMethods.new_FbxLayerElementArrayTemplateFbxVector2(), true) { + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector2.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector2.cs.meta new file mode 100644 index 0000000000..161ad3adf7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 769a6c4b45f7842748fbd3a1b9484112 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector4.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector4.cs new file mode 100644 index 0000000000..6a9e49c129 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector4.cs @@ -0,0 +1,63 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementArrayTemplateFbxVector4 : FbxLayerElementArray { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementArrayTemplateFbxVector4(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementArrayTemplateFbxVector4_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementArrayTemplateFbxVector4 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxLayerElementArrayTemplateFbxVector4() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxLayerElementArrayTemplateFbxVector4(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + private FbxVector4 GetAtUnchecked(int pIndex) { + var ret = NativeMethods.FbxLayerElementArrayTemplateFbxVector4_GetAtUnchecked(swigCPtr, pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 GetAt(int pIndex) { + if (pIndex < 0 || pIndex >= GetCount()) { + throw new System.ArgumentOutOfRangeException("pIndex"); + } + return GetAtUnchecked(pIndex); + } + + public FbxLayerElementArrayTemplateFbxVector4() : this(NativeMethods.new_FbxLayerElementArrayTemplateFbxVector4(), true) { + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector4.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector4.cs.meta new file mode 100644 index 0000000000..4d02865841 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateFbxVector4.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e86a78b069e7347509b07d2e7647b21f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateInt.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateInt.cs new file mode 100644 index 0000000000..81e2105bcc --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateInt.cs @@ -0,0 +1,63 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementArrayTemplateInt : FbxLayerElementArray { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementArrayTemplateInt(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementArrayTemplateInt_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementArrayTemplateInt obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxLayerElementArrayTemplateInt() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxLayerElementArrayTemplateInt(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + private int GetAtUnchecked(int pIndex) { + int ret = NativeMethods.FbxLayerElementArrayTemplateInt_GetAtUnchecked(swigCPtr, pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetAt(int pIndex) { + if (pIndex < 0 || pIndex >= GetCount()) { + throw new System.ArgumentOutOfRangeException("pIndex"); + } + return GetAtUnchecked(pIndex); + } + + public FbxLayerElementArrayTemplateInt() : this(NativeMethods.new_FbxLayerElementArrayTemplateInt(), true) { + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateInt.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateInt.cs.meta new file mode 100644 index 0000000000..c3871ad9e1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementArrayTemplateInt.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4b8530409ddce46c6a66bba4155cf38f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementBinormal.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementBinormal.cs new file mode 100644 index 0000000000..b2f9659151 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementBinormal.cs @@ -0,0 +1,50 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementBinormal : FbxLayerElementTemplateFbxVector4 { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementBinormal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementBinormal_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementBinormal obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public static FbxLayerElementBinormal Create(FbxLayerContainer pOwner, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerElementBinormal_Create(FbxLayerContainer.getCPtr(pOwner), pName); + FbxLayerElementBinormal ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementBinormal(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementBinormal.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementBinormal.cs.meta new file mode 100644 index 0000000000..2e3fb17a1a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementBinormal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 74e6579cda2c24cba99d15c457dab567 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementMaterial.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementMaterial.cs new file mode 100644 index 0000000000..5d9a4180a3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementMaterial.cs @@ -0,0 +1,50 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementMaterial : FbxLayerElementTemplateFbxSurfaceMaterial { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementMaterial(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementMaterial_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementMaterial obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public static FbxLayerElementMaterial Create(FbxLayerContainer pOwner, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerElementMaterial_Create(FbxLayerContainer.getCPtr(pOwner), pName); + FbxLayerElementMaterial ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementMaterial(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementMaterial.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementMaterial.cs.meta new file mode 100644 index 0000000000..7dd2c1306e --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementMaterial.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d0fbf8a1dafd44037bc3de7cc3bb7a4f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementNormal.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementNormal.cs new file mode 100644 index 0000000000..0a763551ae --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementNormal.cs @@ -0,0 +1,50 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementNormal : FbxLayerElementTemplateFbxVector4 { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementNormal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementNormal_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementNormal obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public static FbxLayerElementNormal Create(FbxLayerContainer pOwner, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerElementNormal_Create(FbxLayerContainer.getCPtr(pOwner), pName); + FbxLayerElementNormal ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementNormal(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementNormal.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementNormal.cs.meta new file mode 100644 index 0000000000..fa38368eff --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementNormal.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5933eb8bf1a5348eea84550b6b4bad54 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTangent.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTangent.cs new file mode 100644 index 0000000000..a7440300f9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTangent.cs @@ -0,0 +1,50 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementTangent : FbxLayerElementTemplateFbxVector4 { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementTangent(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementTangent_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementTangent obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public static FbxLayerElementTangent Create(FbxLayerContainer pOwner, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerElementTangent_Create(FbxLayerContainer.getCPtr(pOwner), pName); + FbxLayerElementTangent ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementTangent(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTangent.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTangent.cs.meta new file mode 100644 index 0000000000..5756181f4a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTangent.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 15ee9e6f55ca84cbbbb06c4921e128da +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxColor.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxColor.cs new file mode 100644 index 0000000000..a4783b5c97 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxColor.cs @@ -0,0 +1,55 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementTemplateFbxColor : FbxLayerElement { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementTemplateFbxColor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementTemplateFbxColor_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementTemplateFbxColor obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxLayerElementArrayTemplateFbxColor GetDirectArray() { + FbxLayerElementArrayTemplateFbxColor ret = new FbxLayerElementArrayTemplateFbxColor(NativeMethods.FbxLayerElementTemplateFbxColor_GetDirectArray(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementArrayTemplateInt GetIndexArray() { + FbxLayerElementArrayTemplateInt ret = new FbxLayerElementArrayTemplateInt(NativeMethods.FbxLayerElementTemplateFbxColor_GetIndexArray(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxColor.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxColor.cs.meta new file mode 100644 index 0000000000..98e03a60b8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxColor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8736eb180fa114d4a9f6706827faf155 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxSurfaceMaterial.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxSurfaceMaterial.cs new file mode 100644 index 0000000000..1fbd9257b4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxSurfaceMaterial.cs @@ -0,0 +1,55 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementTemplateFbxSurfaceMaterial : FbxLayerElement { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementTemplateFbxSurfaceMaterial(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementTemplateFbxSurfaceMaterial_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementTemplateFbxSurfaceMaterial obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxLayerElementArrayTemplateFbxSurfaceMaterial GetDirectArray() { + FbxLayerElementArrayTemplateFbxSurfaceMaterial ret = new FbxLayerElementArrayTemplateFbxSurfaceMaterial(NativeMethods.FbxLayerElementTemplateFbxSurfaceMaterial_GetDirectArray(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementArrayTemplateInt GetIndexArray() { + FbxLayerElementArrayTemplateInt ret = new FbxLayerElementArrayTemplateInt(NativeMethods.FbxLayerElementTemplateFbxSurfaceMaterial_GetIndexArray(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxSurfaceMaterial.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxSurfaceMaterial.cs.meta new file mode 100644 index 0000000000..a8efd24f73 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxSurfaceMaterial.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 73fd7a97535c24bbd952a8866de95f47 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector2.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector2.cs new file mode 100644 index 0000000000..e7e47be724 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector2.cs @@ -0,0 +1,55 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementTemplateFbxVector2 : FbxLayerElement { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementTemplateFbxVector2(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementTemplateFbxVector2_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementTemplateFbxVector2 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxLayerElementArrayTemplateFbxVector2 GetDirectArray() { + FbxLayerElementArrayTemplateFbxVector2 ret = new FbxLayerElementArrayTemplateFbxVector2(NativeMethods.FbxLayerElementTemplateFbxVector2_GetDirectArray(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementArrayTemplateInt GetIndexArray() { + FbxLayerElementArrayTemplateInt ret = new FbxLayerElementArrayTemplateInt(NativeMethods.FbxLayerElementTemplateFbxVector2_GetIndexArray(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector2.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector2.cs.meta new file mode 100644 index 0000000000..9ff88fd7b7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector2.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 726d4db0c63b44080a509f8902ec73a7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector4.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector4.cs new file mode 100644 index 0000000000..cce7f4d52f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector4.cs @@ -0,0 +1,55 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementTemplateFbxVector4 : FbxLayerElement { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementTemplateFbxVector4(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementTemplateFbxVector4_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementTemplateFbxVector4 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxLayerElementArrayTemplateFbxVector4 GetDirectArray() { + FbxLayerElementArrayTemplateFbxVector4 ret = new FbxLayerElementArrayTemplateFbxVector4(NativeMethods.FbxLayerElementTemplateFbxVector4_GetDirectArray(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLayerElementArrayTemplateInt GetIndexArray() { + FbxLayerElementArrayTemplateInt ret = new FbxLayerElementArrayTemplateInt(NativeMethods.FbxLayerElementTemplateFbxVector4_GetIndexArray(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector4.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector4.cs.meta new file mode 100644 index 0000000000..edd161602c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementTemplateFbxVector4.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 428b420516dfe4ae79cb5040b0a73044 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementUV.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementUV.cs new file mode 100644 index 0000000000..31c777caff --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementUV.cs @@ -0,0 +1,50 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementUV : FbxLayerElementTemplateFbxVector2 { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementUV(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementUV_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementUV obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public static FbxLayerElementUV Create(FbxLayerContainer pOwner, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerElementUV_Create(FbxLayerContainer.getCPtr(pOwner), pName); + FbxLayerElementUV ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementUV(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementUV.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementUV.cs.meta new file mode 100644 index 0000000000..f8a8962042 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementUV.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 39e6b6a6762ff4388a74da9d4019f322 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementVertexColor.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementVertexColor.cs new file mode 100644 index 0000000000..d7ed619c12 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementVertexColor.cs @@ -0,0 +1,50 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLayerElementVertexColor : FbxLayerElementTemplateFbxColor { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxLayerElementVertexColor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxLayerElementVertexColor_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLayerElementVertexColor obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public static FbxLayerElementVertexColor Create(FbxLayerContainer pOwner, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLayerElementVertexColor_Create(FbxLayerContainer.getCPtr(pOwner), pName); + FbxLayerElementVertexColor ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLayerElementVertexColor(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementVertexColor.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementVertexColor.cs.meta new file mode 100644 index 0000000000..44840b9c1b --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLayerElementVertexColor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bd935cf7bc4124866af5773f254c5ac2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLight.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLight.cs new file mode 100644 index 0000000000..b2482f7d27 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLight.cs @@ -0,0 +1,319 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLight : FbxNodeAttribute { + internal FbxLight(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxLight Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLight_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxLight ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLight(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxLight Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxLight_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxLight ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLight(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetShadowTexture(FbxTexture pTexture) { + NativeMethods.FbxLight_SetShadowTexture(swigCPtr, FbxTexture.getCPtr(pTexture)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTexture GetShadowTexture() { + global::System.IntPtr cPtr = NativeMethods.FbxLight_GetShadowTexture(swigCPtr); + FbxTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxTexture(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyELightType LightType { + get { + FbxPropertyELightType ret = new FbxPropertyELightType(NativeMethods.FbxLight_LightType_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool CastLight { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_CastLight_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool DrawVolumetricLight { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_DrawVolumetricLight_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool DrawGroundProjection { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_DrawGroundProjection_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool DrawFrontFacingVolumetricLight { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_DrawFrontFacingVolumetricLight_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public new FbxPropertyDouble3 Color { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxLight_Color_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble Intensity { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_Intensity_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble InnerAngle { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_InnerAngle_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble OuterAngle { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_OuterAngle_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble Fog { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_Fog_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyEDecayType DecayType { + get { + FbxPropertyEDecayType ret = new FbxPropertyEDecayType(NativeMethods.FbxLight_DecayType_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble DecayStart { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_DecayStart_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString FileName { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxLight_FileName_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool EnableNearAttenuation { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_EnableNearAttenuation_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble NearAttenuationStart { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_NearAttenuationStart_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble NearAttenuationEnd { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_NearAttenuationEnd_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool EnableFarAttenuation { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_EnableFarAttenuation_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble FarAttenuationStart { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_FarAttenuationStart_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble FarAttenuationEnd { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxLight_FarAttenuationEnd_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool CastShadows { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_CastShadows_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 ShadowColor { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxLight_ShadowColor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyEAreaLightShape AreaLightShape { + get { + FbxPropertyEAreaLightShape ret = new FbxPropertyEAreaLightShape(NativeMethods.FbxLight_AreaLightShape_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyFloat LeftBarnDoor { + get { + FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxLight_LeftBarnDoor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyFloat RightBarnDoor { + get { + FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxLight_RightBarnDoor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyFloat TopBarnDoor { + get { + FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxLight_TopBarnDoor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyFloat BottomBarnDoor { + get { + FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxLight_BottomBarnDoor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool EnableBarnDoor { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxLight_EnableBarnDoor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxLight other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxLight; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxLight).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxLight a, FbxLight b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxLight a, FbxLight b) { + return !(a == b); + } + + public new enum EType { + ePoint, + eDirectional, + eSpot, + eArea, + eVolume + } + + public enum EDecayType { + eNone, + eLinear, + eQuadratic, + eCubic + } + + public enum EAreaLightShape { + eRectangle, + eSphere + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLight.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLight.cs.meta new file mode 100644 index 0000000000..75b060d72c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLight.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bf57212375df1423ab2c47b292ea898f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLimits.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLimits.cs new file mode 100644 index 0000000000..2f4debaeeb --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLimits.cs @@ -0,0 +1,172 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxLimits : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxLimits(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxLimits obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxLimits() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxLimits(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxLimits() : this(NativeMethods.new_FbxLimits(), true) { + } + + public bool GetActive() { + bool ret = NativeMethods.FbxLimits_GetActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetActive(bool pActive) { + NativeMethods.FbxLimits_SetActive(swigCPtr, pActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetMinXActive() { + bool ret = NativeMethods.FbxLimits_GetMinXActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetMinYActive() { + bool ret = NativeMethods.FbxLimits_GetMinYActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetMinZActive() { + bool ret = NativeMethods.FbxLimits_GetMinZActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble3 GetMin() { + var ret = NativeMethods.FbxLimits_GetMin(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetMinXActive(bool pActive) { + NativeMethods.FbxLimits_SetMinXActive(swigCPtr, pActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMinYActive(bool pActive) { + NativeMethods.FbxLimits_SetMinYActive(swigCPtr, pActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMinZActive(bool pActive) { + NativeMethods.FbxLimits_SetMinZActive(swigCPtr, pActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMinActive(bool pXActive, bool pYActive, bool pZActive) { + NativeMethods.FbxLimits_SetMinActive(swigCPtr, pXActive, pYActive, pZActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMin(FbxDouble3 pMin) { + NativeMethods.FbxLimits_SetMin(swigCPtr, pMin); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetMaxXActive() { + bool ret = NativeMethods.FbxLimits_GetMaxXActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetMaxYActive() { + bool ret = NativeMethods.FbxLimits_GetMaxYActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetMaxZActive() { + bool ret = NativeMethods.FbxLimits_GetMaxZActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble3 GetMax() { + var ret = NativeMethods.FbxLimits_GetMax(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetMaxXActive(bool pActive) { + NativeMethods.FbxLimits_SetMaxXActive(swigCPtr, pActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMaxYActive(bool pActive) { + NativeMethods.FbxLimits_SetMaxYActive(swigCPtr, pActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMaxZActive(bool pActive) { + NativeMethods.FbxLimits_SetMaxZActive(swigCPtr, pActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMaxActive(bool pXActive, bool pYActive, bool pZActive) { + NativeMethods.FbxLimits_SetMaxActive(swigCPtr, pXActive, pYActive, pZActive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMax(FbxDouble3 pMax) { + NativeMethods.FbxLimits_SetMax(swigCPtr, pMax); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetAnyMinMaxActive() { + bool ret = NativeMethods.FbxLimits_GetAnyMinMaxActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble3 Apply(FbxDouble3 pVector) { + var ret = NativeMethods.FbxLimits_Apply(swigCPtr, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLimits.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLimits.cs.meta new file mode 100644 index 0000000000..89fafcc223 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxLimits.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 491795aeba244434eaf931a5ee584a78 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxManager.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxManager.cs new file mode 100644 index 0000000000..f6dbb25991 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxManager.cs @@ -0,0 +1,125 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxManager : System.IDisposable, System.IEquatable { + protected global::System.Runtime.InteropServices.HandleRef swigCPtr { get ; private set; } + + internal FbxManager(global::System.IntPtr cPtr, bool ignored) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxManager obj) { + return ((object)obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + Dispose(true); + global::System.GC.SuppressFinalize(this); + } + ~FbxManager() { + Dispose(false); + } + protected void Dispose(bool disposing) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (disposing) { + Destroy(); + } + lock(this) { + NativeMethods.ReleaseWeakPointerHandle(swigCPtr); + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + } + } + + public static FbxManager Create() { + global::System.IntPtr cPtr = NativeMethods.FbxManager_Create(); + FbxManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxManager(cPtr, false); + return ret; + } + + public virtual void Destroy() { + NativeMethods.FbxManager_Destroy(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public static string GetVersion(bool pFull) { + string ret = NativeMethods.FbxManager_GetVersion__SWIG_0(pFull); + return ret; + } + + public static string GetVersion() { + string ret = NativeMethods.FbxManager_GetVersion__SWIG_1(); + return ret; + } + + public static void GetFileFormatVersion(out int pMajor, out int pMinor, out int pRevision) { + NativeMethods.FbxManager_GetFileFormatVersion(out pMajor, out pMinor, out pRevision); + } + + public virtual FbxIOSettings GetIOSettings() { + global::System.IntPtr cPtr = NativeMethods.FbxManager_GetIOSettings(swigCPtr); + FbxIOSettings ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOSettings(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual void SetIOSettings(FbxIOSettings pIOSettings) { + NativeMethods.FbxManager_SetIOSettings(swigCPtr, FbxIOSettings.getCPtr(pIOSettings)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxIOPluginRegistry GetIOPluginRegistry() { + global::System.IntPtr cPtr = NativeMethods.FbxManager_GetIOPluginRegistry(swigCPtr); + FbxIOPluginRegistry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxIOPluginRegistry(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxManager other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxManager; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxManager).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxManager a, FbxManager b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxManager a, FbxManager b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxManager.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxManager.cs.meta new file mode 100644 index 0000000000..fb40da39b8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 90855c44bd2944fb4b45a8dc1d86b599 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMarker.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMarker.cs new file mode 100644 index 0000000000..9a70953cb4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMarker.cs @@ -0,0 +1,233 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxMarker : FbxNodeAttribute { + internal FbxMarker(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxMarker Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxMarker_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxMarker ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxMarker(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxMarker Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxMarker_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxMarker ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxMarker(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Reset() { + NativeMethods.FbxMarker_Reset(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetMarkerType(FbxMarker.EType pType) { + NativeMethods.FbxMarker_SetMarkerType(swigCPtr, (int)pType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxMarker.EType GetMarkerType() { + FbxMarker.EType ret = (FbxMarker.EType)NativeMethods.FbxMarker_GetMarkerType(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetDefaultOcclusion() { + double ret = NativeMethods.FbxMarker_GetDefaultOcclusion(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDefaultOcclusion(double pOcclusion) { + NativeMethods.FbxMarker_SetDefaultOcclusion(swigCPtr, pOcclusion); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetDefaultIKReachTranslation() { + double ret = NativeMethods.FbxMarker_GetDefaultIKReachTranslation(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDefaultIKReachTranslation(double pIKReachTranslation) { + NativeMethods.FbxMarker_SetDefaultIKReachTranslation(swigCPtr, pIKReachTranslation); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetDefaultIKReachRotation() { + double ret = NativeMethods.FbxMarker_GetDefaultIKReachRotation(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDefaultIKReachRotation(double pIKReachRotation) { + NativeMethods.FbxMarker_SetDefaultIKReachRotation(swigCPtr, pIKReachRotation); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetDefaultIKPull() { + double ret = NativeMethods.FbxMarker_GetDefaultIKPull(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDefaultIKPull(double pIKPull) { + NativeMethods.FbxMarker_SetDefaultIKPull(swigCPtr, pIKPull); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetDefaultIKPullHips() { + double ret = NativeMethods.FbxMarker_GetDefaultIKPullHips(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDefaultIKPullHips(double pIKPullHips) { + NativeMethods.FbxMarker_SetDefaultIKPullHips(swigCPtr, pIKPullHips); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxPropertyMarkerELook Look { + get { + FbxPropertyMarkerELook ret = new FbxPropertyMarkerELook(NativeMethods.FbxMarker_Look_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool DrawLink { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxMarker_DrawLink_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble Size { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxMarker_Size_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool ShowLabel { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxMarker_ShowLabel_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 IKPivot { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxMarker_IKPivot_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxProperty GetOcclusion() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxMarker_GetOcclusion(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetIKReachTranslation() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxMarker_GetIKReachTranslation(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetIKReachRotation() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxMarker_GetIKReachRotation(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetIKPull() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxMarker_GetIKPull(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetIKPullHips() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxMarker_GetIKPullHips(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxMarker other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxMarker; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxMarker).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxMarker a, FbxMarker b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxMarker a, FbxMarker b) { + return !(a == b); + } + + public new enum EType { + eStandard, + eOptical, + eEffectorFK, + eEffectorIK + } + + public enum ELook { + eCube, + eHardCross, + eLightCross, + eSphere, + eCapsule, + eBox, + eBone, + eCircle, + eSquare, + eStick, + eNone + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMarker.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMarker.cs.meta new file mode 100644 index 0000000000..43e73fd394 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMarker.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8654122dcaef64b2f8bc0501341d95b5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMatrix.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMatrix.cs new file mode 100644 index 0000000000..4fd98f6089 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMatrix.cs @@ -0,0 +1,246 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxMatrix : FbxDouble4x4 { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxMatrix(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxMatrix_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxMatrix obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxMatrix() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxMatrix(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxMatrix() : this(NativeMethods.new_FbxMatrix__SWIG_0(), true) { + } + + public FbxMatrix(FbxMatrix pM) : this(NativeMethods.new_FbxMatrix__SWIG_1(FbxMatrix.getCPtr(pM)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxMatrix(FbxAMatrix pM) : this(NativeMethods.new_FbxMatrix__SWIG_2(FbxAMatrix.getCPtr(pM)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxMatrix(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) : this(NativeMethods.new_FbxMatrix__SWIG_3(pT, pR, pS), true) { + } + + public FbxMatrix(FbxVector4 pT, FbxQuaternion pQ, FbxVector4 pS) : this(NativeMethods.new_FbxMatrix__SWIG_4(pT, FbxQuaternion.getCPtr(pQ), pS), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxMatrix(double p00, double p10, double p20, double p30, double p01, double p11, double p21, double p31, double p02, double p12, double p22, double p32, double p03, double p13, double p23, double p33) : this(NativeMethods.new_FbxMatrix__SWIG_5(p00, p10, p20, p30, p01, p11, p21, p31, p02, p12, p22, p32, p03, p13, p23, p33), true) { + } + + public double Get(int pY, int pX) { + double ret = NativeMethods.FbxMatrix_Get(swigCPtr, pY, pX); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 GetRow(int pY) { + var ret = NativeMethods.FbxMatrix_GetRow(swigCPtr, pY); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxVector4 GetColumn(int pX) { + var ret = NativeMethods.FbxMatrix_GetColumn(swigCPtr, pX); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Set(int pY, int pX, double pValue) { + NativeMethods.FbxMatrix_Set(swigCPtr, pY, pX, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTRS(FbxVector4 pT, FbxVector4 pR, FbxVector4 pS) { + NativeMethods.FbxMatrix_SetTRS(swigCPtr, pT, pR, pS); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetTQS(FbxVector4 pT, FbxQuaternion pQ, FbxVector4 pS) { + NativeMethods.FbxMatrix_SetTQS(swigCPtr, pT, FbxQuaternion.getCPtr(pQ), pS); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetRow(int pY, FbxVector4 pRow) { + NativeMethods.FbxMatrix_SetRow(swigCPtr, pY, pRow); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetColumn(int pX, FbxVector4 pColumn) { + NativeMethods.FbxMatrix_SetColumn(swigCPtr, pX, pColumn); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void GetElements(out FbxVector4 pTranslation, FbxQuaternion pRotation, out FbxVector4 pShearing, out FbxVector4 pScaling, out double pSign) { + NativeMethods.FbxMatrix_GetElements__SWIG_0(swigCPtr, out pTranslation, FbxQuaternion.getCPtr(pRotation), out pShearing, out pScaling, out pSign); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void GetElements(out FbxVector4 pTranslation, out FbxVector4 pRotation, out FbxVector4 pShearing, out FbxVector4 pScaling, out double pSign) { + NativeMethods.FbxMatrix_GetElements__SWIG_1(swigCPtr, out pTranslation, out pRotation, out pShearing, out pScaling, out pSign); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + private FbxMatrix operator_Negate() { + FbxMatrix ret = new FbxMatrix(NativeMethods.FbxMatrix_operator_Negate(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxMatrix operator_Add(FbxMatrix pMatrix) { + FbxMatrix ret = new FbxMatrix(NativeMethods.FbxMatrix_operator_Add(swigCPtr, FbxMatrix.getCPtr(pMatrix)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxMatrix operator_Sub(FbxMatrix pMatrix) { + FbxMatrix ret = new FbxMatrix(NativeMethods.FbxMatrix_operator_Sub(swigCPtr, FbxMatrix.getCPtr(pMatrix)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxMatrix operator_Mul(FbxMatrix pMatrix) { + FbxMatrix ret = new FbxMatrix(NativeMethods.FbxMatrix_operator_Mul(swigCPtr, FbxMatrix.getCPtr(pMatrix)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private bool _equals(FbxMatrix pM) { + bool ret = NativeMethods.FbxMatrix__equals(swigCPtr, FbxMatrix.getCPtr(pM)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxMatrix Inverse() { + FbxMatrix ret = new FbxMatrix(NativeMethods.FbxMatrix_Inverse(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxMatrix Transpose() { + FbxMatrix ret = new FbxMatrix(NativeMethods.FbxMatrix_Transpose(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetIdentity() { + NativeMethods.FbxMatrix_SetIdentity(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetLookToLH(FbxVector4 pEyePosition, FbxVector4 pEyeDirection, FbxVector4 pUpDirection) { + NativeMethods.FbxMatrix_SetLookToLH(swigCPtr, pEyePosition, pEyeDirection, pUpDirection); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetLookToRH(FbxVector4 pEyePosition, FbxVector4 pEyeDirection, FbxVector4 pUpDirection) { + NativeMethods.FbxMatrix_SetLookToRH(swigCPtr, pEyePosition, pEyeDirection, pUpDirection); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetLookAtLH(FbxVector4 pEyePosition, FbxVector4 pLookAt, FbxVector4 pUpDirection) { + NativeMethods.FbxMatrix_SetLookAtLH(swigCPtr, pEyePosition, pLookAt, pUpDirection); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetLookAtRH(FbxVector4 pEyePosition, FbxVector4 pLookAt, FbxVector4 pUpDirection) { + NativeMethods.FbxMatrix_SetLookAtRH(swigCPtr, pEyePosition, pLookAt, pUpDirection); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 MultNormalize(FbxVector4 pVector) { + var ret = NativeMethods.FbxMatrix_MultNormalize(swigCPtr, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxMatrix operator - (FbxMatrix a) { + return a.operator_Negate(); + } + + public static FbxMatrix operator + (FbxMatrix a, FbxMatrix b) { + return a.operator_Add(b); + } + + public static FbxMatrix operator - (FbxMatrix a, FbxMatrix b) { + return a.operator_Sub(b); + } + + public static FbxMatrix operator * (FbxMatrix a, FbxMatrix b) { + return a.operator_Mul(b); + } + + public bool Equals(FbxMatrix other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxMatrix; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxMatrix).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxMatrix a, FbxMatrix b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxMatrix a, FbxMatrix b) { + return !(a == b); + } + + public override int GetHashCode() { + int ret = NativeMethods.FbxMatrix_GetHashCode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMatrix.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMatrix.cs.meta new file mode 100644 index 0000000000..a2a1d7462e --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMatrix.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5afc4ee58f52a4323a204ebb3a4a4545 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMesh.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMesh.cs new file mode 100644 index 0000000000..1b2fe15ee7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMesh.cs @@ -0,0 +1,153 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxMesh : FbxGeometry { + internal FbxMesh(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxMesh Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxMesh_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxMesh ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxMesh(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxMesh Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxMesh_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxMesh ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxMesh(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private void BeginPolygonUnchecked(int pMaterial, int pTexture, int pGroup, bool pLegacy) { + NativeMethods.FbxMesh_BeginPolygonUnchecked(swigCPtr, pMaterial, pTexture, pGroup, pLegacy); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + private void AddPolygonUnchecked(int pIndex, int pTextureUVIndex) { + NativeMethods.FbxMesh_AddPolygonUnchecked(swigCPtr, pIndex, pTextureUVIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + private void EndPolygonUnchecked() { + NativeMethods.FbxMesh_EndPolygonUnchecked(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public int GetPolygonCount() { + int ret = NativeMethods.FbxMesh_GetPolygonCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetPolygonSize(int pPolygonIndex) { + int ret = NativeMethods.FbxMesh_GetPolygonSize(swigCPtr, pPolygonIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetPolygonVertex(int pPolygonIndex, int pPositionInPolygon) { + int ret = NativeMethods.FbxMesh_GetPolygonVertex(swigCPtr, pPolygonIndex, pPositionInPolygon); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetPolygonVertexNormal(int pPolyIndex, int pVertexIndex, out FbxVector4 pNormal) { + bool ret = NativeMethods.FbxMesh_GetPolygonVertexNormal(swigCPtr, pPolyIndex, pVertexIndex, out pNormal); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetPolygonVertexCount() { + int ret = NativeMethods.FbxMesh_GetPolygonVertexCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SplitPoints(FbxLayerElement.EType pTypeIdentifier) { + bool ret = NativeMethods.FbxMesh_SplitPoints__SWIG_0(swigCPtr, (int)pTypeIdentifier); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SplitPoints() { + bool ret = NativeMethods.FbxMesh_SplitPoints__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxMesh other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxMesh; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxMesh).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxMesh a, FbxMesh b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxMesh a, FbxMesh b) { + return !(a == b); + } + + [System.SerializableAttribute] + public class BadBracketingException : System.NotSupportedException { + public BadBracketingException() : base() { } + public BadBracketingException(string message, System.Exception innerException) : base("Improper bracketing of Begin/Add/EndPolygon: " + message, innerException) { } + public BadBracketingException(string message) : base("Improper bracketing of Begin/Add/EndPolygon: " + message) { } + protected BadBracketingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } + } + + bool m_isAddingPolygon = false; + + public void BeginPolygon(int pMaterial=-1, int pTexture=-1, int pGroup=-1, bool pLegacy=true) { + if (m_isAddingPolygon) { throw new BadBracketingException("BeginPolygon while already building a polygon"); } + BeginPolygonUnchecked(pMaterial, pTexture, pGroup, pLegacy); + m_isAddingPolygon = true; + } + public void AddPolygon(int pIndex, int pTextureUVIndex = -1) { + if (!m_isAddingPolygon) { throw new BadBracketingException("AddPolygon without matching BeginPolygon"); } + if (pIndex < 0) { throw new System.ArgumentOutOfRangeException("pIndex"); } + AddPolygonUnchecked(pIndex, pTextureUVIndex); + } + public void EndPolygon() { + if (!m_isAddingPolygon) { throw new BadBracketingException("EndPolygon without matching BeginPolygon"); } + m_isAddingPolygon = false; + EndPolygonUnchecked(); + } +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMesh.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMesh.cs.meta new file mode 100644 index 0000000000..21ff652cec --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxMesh.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 70cd86bb722494b0586c9791ac1c3848 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNode.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNode.cs new file mode 100644 index 0000000000..acc8efa368 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNode.cs @@ -0,0 +1,504 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxNode : FbxObject { + internal FbxNode(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxNode Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxNode Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode GetParent() { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetParent(swigCPtr); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool AddChild(FbxNode pNode) { + bool ret = NativeMethods.FbxNode_AddChild(swigCPtr, FbxNode.getCPtr(pNode)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode RemoveChild(FbxNode pNode) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_RemoveChild(swigCPtr, FbxNode.getCPtr(pNode)); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetChildCount(bool pRecursive) { + int ret = NativeMethods.FbxNode_GetChildCount__SWIG_0(swigCPtr, pRecursive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetChildCount() { + int ret = NativeMethods.FbxNode_GetChildCount__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode GetChild(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetChild(swigCPtr, pIndex); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode FindChild(string pName, bool pRecursive, bool pInitial) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_FindChild__SWIG_0(swigCPtr, pName, pRecursive, pInitial); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode FindChild(string pName, bool pRecursive) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_FindChild__SWIG_1(swigCPtr, pName, pRecursive); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode FindChild(string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_FindChild__SWIG_2(swigCPtr, pName); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetVisibility(bool pIsVisible) { + NativeMethods.FbxNode_SetVisibility(swigCPtr, pIsVisible); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetVisibility() { + bool ret = NativeMethods.FbxNode_GetVisibility(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetShadingMode(FbxNode.EShadingMode pShadingMode) { + NativeMethods.FbxNode_SetShadingMode(swigCPtr, (int)pShadingMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxNode.EShadingMode GetShadingMode() { + FbxNode.EShadingMode ret = (FbxNode.EShadingMode)NativeMethods.FbxNode_GetShadingMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNodeAttribute SetNodeAttribute(FbxNodeAttribute pNodeAttribute) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_SetNodeAttribute(swigCPtr, FbxNodeAttribute.getCPtr(pNodeAttribute)); + FbxNodeAttribute ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNodeAttribute(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNodeAttribute GetNodeAttribute() { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetNodeAttribute(swigCPtr); + FbxNodeAttribute ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNodeAttribute(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxSkeleton GetSkeleton() { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetSkeleton(swigCPtr); + FbxSkeleton ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSkeleton(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxGeometry GetGeometry() { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetGeometry(swigCPtr); + FbxGeometry ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxGeometry(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxMesh GetMesh() { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetMesh(swigCPtr); + FbxMesh ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxMesh(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNurbsCurve GetNurbsCurve() { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetNurbsCurve(swigCPtr); + FbxNurbsCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNurbsCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera GetCamera() { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetCamera(swigCPtr); + FbxCamera ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxCamera(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight GetLight() { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetLight(swigCPtr); + FbxLight ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxLight(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetTransformationInheritType(FbxTransform.EInheritType pInheritType) { + NativeMethods.FbxNode_SetTransformationInheritType(swigCPtr, (int)pInheritType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetPivotState(FbxNode.EPivotSet pPivotSet, FbxNode.EPivotState pPivotState) { + NativeMethods.FbxNode_SetPivotState(swigCPtr, (int)pPivotSet, (int)pPivotState); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetRotationOrder(FbxNode.EPivotSet pPivotSet, FbxEuler.EOrder pRotationOrder) { + NativeMethods.FbxNode_SetRotationOrder(swigCPtr, (int)pPivotSet, (int)pRotationOrder); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void GetRotationOrder(FbxNode.EPivotSet pPivotSet, out int pRotationOrder) { + NativeMethods.FbxNode_GetRotationOrder(swigCPtr, (int)pPivotSet, out pRotationOrder); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetRotationActive(bool pVal) { + NativeMethods.FbxNode_SetRotationActive(swigCPtr, pVal); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetRotationActive() { + bool ret = NativeMethods.FbxNode_GetRotationActive(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetQuaternionInterpolation(FbxNode.EPivotSet pPivotSet, SWIGTYPE_EFbxQuatInterpMode pQuatIterp) { + NativeMethods.FbxNode_SetQuaternionInterpolation(swigCPtr, (int)pPivotSet, (int)pQuatIterp); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public SWIGTYPE_EFbxQuatInterpMode GetQuaternionInterpolation(FbxNode.EPivotSet pPivotSet) { + SWIGTYPE_EFbxQuatInterpMode ret = (SWIGTYPE_EFbxQuatInterpMode)NativeMethods.FbxNode_GetQuaternionInterpolation(swigCPtr, (int)pPivotSet); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetRotationOffset(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetRotationOffset(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetRotationOffset(FbxNode.EPivotSet pPivotSet) { + var ret = NativeMethods.FbxNode_GetRotationOffset(swigCPtr, (int)pPivotSet); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetRotationPivot(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetRotationPivot(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetRotationPivot(FbxNode.EPivotSet pPivotSet) { + var ret = NativeMethods.FbxNode_GetRotationPivot(swigCPtr, (int)pPivotSet); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetPreRotation(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetPreRotation(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetPreRotation(FbxNode.EPivotSet pPivotSet) { + var ret = NativeMethods.FbxNode_GetPreRotation(swigCPtr, (int)pPivotSet); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetPostRotation(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetPostRotation(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetPostRotation(FbxNode.EPivotSet pPivotSet) { + var ret = NativeMethods.FbxNode_GetPostRotation(swigCPtr, (int)pPivotSet); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetScalingOffset(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetScalingOffset(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetScalingOffset(FbxNode.EPivotSet pPivotSet) { + var ret = NativeMethods.FbxNode_GetScalingOffset(swigCPtr, (int)pPivotSet); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetScalingPivot(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetScalingPivot(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 GetScalingPivot(FbxNode.EPivotSet pPivotSet) { + var ret = NativeMethods.FbxNode_GetScalingPivot(swigCPtr, (int)pPivotSet); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetGeometricTranslation(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetGeometricTranslation(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetGeometricRotation(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetGeometricRotation(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetGeometricScaling(FbxNode.EPivotSet pPivotSet, FbxVector4 pVector) { + NativeMethods.FbxNode_SetGeometricScaling(swigCPtr, (int)pPivotSet, pVector); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void ConvertPivotAnimationRecursive(FbxAnimStack pAnimStack, FbxNode.EPivotSet pConversionTarget, double pFrameRate, bool pKeyReduce) { + NativeMethods.FbxNode_ConvertPivotAnimationRecursive__SWIG_0(swigCPtr, FbxAnimStack.getCPtr(pAnimStack), (int)pConversionTarget, pFrameRate, pKeyReduce); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void ConvertPivotAnimationRecursive(FbxAnimStack pAnimStack, FbxNode.EPivotSet pConversionTarget, double pFrameRate) { + NativeMethods.FbxNode_ConvertPivotAnimationRecursive__SWIG_1(swigCPtr, FbxAnimStack.getCPtr(pAnimStack), (int)pConversionTarget, pFrameRate); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAMatrix EvaluateGlobalTransform(FbxTime pTime, FbxNode.EPivotSet pPivotSet, bool pApplyTarget, bool pForceEval) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateGlobalTransform__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), (int)pPivotSet, pApplyTarget, pForceEval), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateGlobalTransform(FbxTime pTime, FbxNode.EPivotSet pPivotSet, bool pApplyTarget) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateGlobalTransform__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime), (int)pPivotSet, pApplyTarget), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateGlobalTransform(FbxTime pTime, FbxNode.EPivotSet pPivotSet) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateGlobalTransform__SWIG_2(swigCPtr, FbxTime.getCPtr(pTime), (int)pPivotSet), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateGlobalTransform(FbxTime pTime) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateGlobalTransform__SWIG_3(swigCPtr, FbxTime.getCPtr(pTime)), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateGlobalTransform() { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateGlobalTransform__SWIG_4(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateLocalTransform(FbxTime pTime, FbxNode.EPivotSet pPivotSet, bool pApplyTarget, bool pForceEval) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateLocalTransform__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), (int)pPivotSet, pApplyTarget, pForceEval), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateLocalTransform(FbxTime pTime, FbxNode.EPivotSet pPivotSet, bool pApplyTarget) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateLocalTransform__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime), (int)pPivotSet, pApplyTarget), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateLocalTransform(FbxTime pTime, FbxNode.EPivotSet pPivotSet) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateLocalTransform__SWIG_2(swigCPtr, FbxTime.getCPtr(pTime), (int)pPivotSet), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateLocalTransform(FbxTime pTime) { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateLocalTransform__SWIG_3(swigCPtr, FbxTime.getCPtr(pTime)), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAMatrix EvaluateLocalTransform() { + FbxAMatrix ret = new FbxAMatrix(NativeMethods.FbxNode_EvaluateLocalTransform__SWIG_4(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int AddMaterial(FbxSurfaceMaterial pMaterial) { + int ret = NativeMethods.FbxNode_AddMaterial(swigCPtr, FbxSurfaceMaterial.getCPtr(pMaterial)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetMaterialCount() { + int ret = NativeMethods.FbxNode_GetMaterialCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxSurfaceMaterial GetMaterial(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxNode_GetMaterial(swigCPtr, pIndex); + FbxSurfaceMaterial ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfaceMaterial(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetMaterialIndex(string pName) { + int ret = NativeMethods.FbxNode_GetMaterialIndex(swigCPtr, pName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble3 LclTranslation { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxNode_LclTranslation_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 LclRotation { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxNode_LclRotation_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 LclScaling { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxNode_LclScaling_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool VisibilityInheritance { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxNode_VisibilityInheritance_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyEInheritType InheritType { + get { + FbxPropertyEInheritType ret = new FbxPropertyEInheritType(NativeMethods.FbxNode_InheritType_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxNode other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxNode; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxNode).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxNode a, FbxNode b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxNode a, FbxNode b) { + return !(a == b); + } + + public FbxLimits GetTranslationLimits() { + FbxLimits ret = new FbxLimits(NativeMethods.FbxNode_GetTranslationLimits(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLimits GetRotationLimits() { + FbxLimits ret = new FbxLimits(NativeMethods.FbxNode_GetRotationLimits(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLimits GetScalingLimits() { + FbxLimits ret = new FbxLimits(NativeMethods.FbxNode_GetScalingLimits(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public enum EShadingMode { + eHardShading, + eWireFrame, + eFlatShading, + eLightShading, + eTextureShading, + eFullShading + } + + public enum EPivotSet { + eSourcePivot, + eDestinationPivot + } + + public enum EPivotState { + ePivotActive, + ePivotReference + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNode.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNode.cs.meta new file mode 100644 index 0000000000..3b939c7cc9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92767be294cf445caacd45dc133920ca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNodeAttribute.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNodeAttribute.cs new file mode 100644 index 0000000000..9297c0f8c2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNodeAttribute.cs @@ -0,0 +1,144 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxNodeAttribute : FbxObject { + internal FbxNodeAttribute(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxNodeAttribute Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNodeAttribute_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxNodeAttribute ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNodeAttribute(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxNodeAttribute Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNodeAttribute_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxNodeAttribute ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNodeAttribute(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static string sColor { + get { + string ret = NativeMethods.FbxNodeAttribute_sColor_get(); + return ret; + } + } + + public static FbxDouble3 sDefaultColor { + get { + var ret = NativeMethods.FbxNodeAttribute_sDefaultColor_get(); + return ret; + } + } + + public FbxPropertyDouble3 Color { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxNodeAttribute_Color_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public virtual FbxNodeAttribute.EType GetAttributeType() { + FbxNodeAttribute.EType ret = (FbxNodeAttribute.EType)NativeMethods.FbxNodeAttribute_GetAttributeType(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetNodeCount() { + int ret = NativeMethods.FbxNodeAttribute_GetNodeCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode GetNode(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxNodeAttribute_GetNode__SWIG_0(swigCPtr, pIndex); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode GetNode() { + global::System.IntPtr cPtr = NativeMethods.FbxNodeAttribute_GetNode__SWIG_1(swigCPtr); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxNodeAttribute other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxNodeAttribute; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxNodeAttribute).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxNodeAttribute a, FbxNodeAttribute b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxNodeAttribute a, FbxNodeAttribute b) { + return !(a == b); + } + + public enum EType { + eUnknown, + eNull, + eMarker, + eSkeleton, + eMesh, + eNurbs, + ePatch, + eCamera, + eCameraStereo, + eCameraSwitcher, + eLight, + eOpticalReference, + eOpticalMarker, + eNurbsCurve, + eTrimNurbsSurface, + eBoundary, + eNurbsSurface, + eShape, + eLODGroup, + eSubDiv, + eCachedEffect, + eLine + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNodeAttribute.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNodeAttribute.cs.meta new file mode 100644 index 0000000000..dffae19324 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNodeAttribute.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fdcc203cbd9eb418d8d7fb5861ffd47e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNull.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNull.cs new file mode 100644 index 0000000000..af67af096c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNull.cs @@ -0,0 +1,131 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxNull : FbxNodeAttribute { + internal FbxNull(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxNull Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNull_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxNull ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNull(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxNull Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNull_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxNull ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNull(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Reset() { + NativeMethods.FbxNull_Reset(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetSizeDefaultValue() { + double ret = NativeMethods.FbxNull_GetSizeDefaultValue(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static string sSize { + get { + string ret = NativeMethods.FbxNull_sSize_get(); + return ret; + } + } + + public static string sLook { + get { + string ret = NativeMethods.FbxNull_sLook_get(); + return ret; + } + } + + public static double sDefaultSize { + get { + double ret = NativeMethods.FbxNull_sDefaultSize_get(); + return ret; + } + } + + public static FbxNull.ELook sDefaultLook { + get { + FbxNull.ELook ret = (FbxNull.ELook)NativeMethods.FbxNull_sDefaultLook_get(); + return ret; + } + } + + public FbxPropertyDouble Size { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxNull_Size_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyNullELook Look { + get { + FbxPropertyNullELook ret = new FbxPropertyNullELook(NativeMethods.FbxNull_Look_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxNull other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxNull; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxNull).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxNull a, FbxNull b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxNull a, FbxNull b) { + return !(a == b); + } + + public enum ELook { + eNone, + eCross + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNull.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNull.cs.meta new file mode 100644 index 0000000000..8ac292f04b --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNull.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4806f250b87e544afa3661701a6fbe1e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNurbsCurve.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNurbsCurve.cs new file mode 100644 index 0000000000..beebd85811 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNurbsCurve.cs @@ -0,0 +1,161 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxNurbsCurve : FbxGeometry { + internal FbxNurbsCurve(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxNurbsCurve Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNurbsCurve_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxNurbsCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNurbsCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxNurbsCurve Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxNurbsCurve_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxNurbsCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNurbsCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void InitControlPoints(int pCount, FbxNurbsCurve.EType pVType) { + NativeMethods.FbxNurbsCurve_InitControlPoints(swigCPtr, pCount, (int)pVType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public int GetKnotCount() { + int ret = NativeMethods.FbxNurbsCurve_GetKnotCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetOrder(int pOrder) { + NativeMethods.FbxNurbsCurve_SetOrder(swigCPtr, pOrder); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public int GetOrder() { + int ret = NativeMethods.FbxNurbsCurve_GetOrder(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetStep(int pStep) { + NativeMethods.FbxNurbsCurve_SetStep(swigCPtr, pStep); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public int GetStep() { + int ret = NativeMethods.FbxNurbsCurve_GetStep(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDimension(FbxNurbsCurve.EDimension pDimension) { + NativeMethods.FbxNurbsCurve_SetDimension(swigCPtr, (int)pDimension); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxNurbsCurve.EDimension GetDimension() { + FbxNurbsCurve.EDimension ret = (FbxNurbsCurve.EDimension)NativeMethods.FbxNurbsCurve_GetDimension(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsRational() { + bool ret = NativeMethods.FbxNurbsCurve_IsRational(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetSpanCount() { + int ret = NativeMethods.FbxNurbsCurve_GetSpanCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsPolyline() { + bool ret = NativeMethods.FbxNurbsCurve_IsPolyline(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsBezier() { + bool ret = NativeMethods.FbxNurbsCurve_IsBezier(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxNurbsCurve other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxNurbsCurve; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxNurbsCurve).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxNurbsCurve a, FbxNurbsCurve b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxNurbsCurve a, FbxNurbsCurve b) { + return !(a == b); + } + + public double GetKnotVectorAt(int pIndex) { + double ret = NativeMethods.FbxNurbsCurve_GetKnotVectorAt(swigCPtr, pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetKnotVectorAt(int pIndex, double aKnot) { + NativeMethods.FbxNurbsCurve_SetKnotVectorAt(swigCPtr, pIndex, aKnot); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public enum EDimension { + e2D = 2, + e3D + } + + new public enum EType { + eOpen, + eClosed, + ePeriodic + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNurbsCurve.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNurbsCurve.cs.meta new file mode 100644 index 0000000000..66ff3bc058 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxNurbsCurve.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 90104d1f680b2d64fb552bb1bb099f87 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxObject.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxObject.cs new file mode 100644 index 0000000000..fdf95c8624 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxObject.cs @@ -0,0 +1,467 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxObject : FbxEmitter { + internal FbxObject(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public static FbxObject Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxObject_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxObject Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxObject_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxManager GetFbxManager() { + global::System.IntPtr cPtr = NativeMethods.FbxObject_GetFbxManager(swigCPtr); + FbxManager ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxManager(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxScene GetScene() { + global::System.IntPtr cPtr = NativeMethods.FbxObject_GetScene(swigCPtr); + FbxScene ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxScene(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override void Destroy(bool pRecursive) { + NativeMethods.FbxObject_Destroy__SWIG_0(swigCPtr, pRecursive); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public override void Destroy() { + NativeMethods.FbxObject_Destroy__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetName(string pName) { + NativeMethods.FbxObject_SetName(swigCPtr, pName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public string GetName() { + string ret = NativeMethods.FbxObject_GetName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetNameWithoutNameSpacePrefix() { + string ret = NativeMethods.FbxObject_GetNameWithoutNameSpacePrefix(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetInitialName(string pName) { + NativeMethods.FbxObject_SetInitialName(swigCPtr, pName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public string GetInitialName() { + string ret = NativeMethods.FbxObject_GetInitialName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetNameSpaceOnly() { + string ret = NativeMethods.FbxObject_GetNameSpaceOnly(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetNameSpace(string pNameSpace) { + NativeMethods.FbxObject_SetNameSpace(swigCPtr, pNameSpace); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public static string StripPrefix(string pName) { + string ret = NativeMethods.FbxObject_StripPrefix(pName); + return ret; + } + + public virtual bool GetSelected() { + bool ret = NativeMethods.FbxObject_GetSelected(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public virtual void SetSelected(bool pSelected) { + NativeMethods.FbxObject_SetSelected(swigCPtr, pSelected); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool ConnectSrcObject(FbxObject pObject, FbxConnection.EType pType) { + bool ret = NativeMethods.FbxObject_ConnectSrcObject__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), (int)pType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectSrcObject(FbxObject pObject) { + bool ret = NativeMethods.FbxObject_ConnectSrcObject__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsConnectedSrcObject(FbxObject pObject) { + bool ret = NativeMethods.FbxObject_IsConnectedSrcObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool DisconnectSrcObject(FbxObject pObject) { + bool ret = NativeMethods.FbxObject_DisconnectSrcObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetSrcObjectCount() { + int ret = NativeMethods.FbxObject_GetSrcObjectCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject GetSrcObject(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxObject_GetSrcObject__SWIG_0(swigCPtr, pIndex); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject GetSrcObject() { + global::System.IntPtr cPtr = NativeMethods.FbxObject_GetSrcObject__SWIG_1(swigCPtr); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject FindSrcObject(string pName, int pStartIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxObject_FindSrcObject__SWIG_0(swigCPtr, pName, pStartIndex); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject FindSrcObject(string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxObject_FindSrcObject__SWIG_1(swigCPtr, pName); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectDstObject(FbxObject pObject, FbxConnection.EType pType) { + bool ret = NativeMethods.FbxObject_ConnectDstObject__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), (int)pType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectDstObject(FbxObject pObject) { + bool ret = NativeMethods.FbxObject_ConnectDstObject__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsConnectedDstObject(FbxObject pObject) { + bool ret = NativeMethods.FbxObject_IsConnectedDstObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool DisconnectDstObject(FbxObject pObject) { + bool ret = NativeMethods.FbxObject_DisconnectDstObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetDstObjectCount() { + int ret = NativeMethods.FbxObject_GetDstObjectCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject GetDstObject(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxObject_GetDstObject__SWIG_0(swigCPtr, pIndex); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject GetDstObject() { + global::System.IntPtr cPtr = NativeMethods.FbxObject_GetDstObject__SWIG_1(swigCPtr); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject FindDstObject(string pName, int pStartIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxObject_FindDstObject__SWIG_0(swigCPtr, pName, pStartIndex); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject FindDstObject(string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxObject_FindDstObject__SWIG_1(swigCPtr, pName); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetFirstProperty() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_GetFirstProperty(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetNextProperty(FbxProperty pProperty) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_GetNextProperty(swigCPtr, FbxProperty.getCPtr(pProperty)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindProperty(string pName, bool pCaseSensitive) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindProperty__SWIG_0(swigCPtr, pName, pCaseSensitive), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindProperty(string pName) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindProperty__SWIG_1(swigCPtr, pName), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindProperty(string pName, FbxDataType pDataType, bool pCaseSensitive) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindProperty__SWIG_2(swigCPtr, pName, FbxDataType.getCPtr(pDataType), pCaseSensitive), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindProperty(string pName, FbxDataType pDataType) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindProperty__SWIG_3(swigCPtr, pName, FbxDataType.getCPtr(pDataType)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindPropertyHierarchical(string pName, bool pCaseSensitive) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindPropertyHierarchical__SWIG_0(swigCPtr, pName, pCaseSensitive), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindPropertyHierarchical(string pName) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindPropertyHierarchical__SWIG_1(swigCPtr, pName), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindPropertyHierarchical(string pName, FbxDataType pDataType, bool pCaseSensitive) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindPropertyHierarchical__SWIG_2(swigCPtr, pName, FbxDataType.getCPtr(pDataType), pCaseSensitive), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindPropertyHierarchical(string pName, FbxDataType pDataType) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindPropertyHierarchical__SWIG_3(swigCPtr, pName, FbxDataType.getCPtr(pDataType)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetClassRootProperty() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_GetClassRootProperty(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectSrcProperty(FbxProperty pProperty) { + bool ret = NativeMethods.FbxObject_ConnectSrcProperty(swigCPtr, FbxProperty.getCPtr(pProperty)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsConnectedSrcProperty(FbxProperty pProperty) { + bool ret = NativeMethods.FbxObject_IsConnectedSrcProperty(swigCPtr, FbxProperty.getCPtr(pProperty)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool DisconnectSrcProperty(FbxProperty pProperty) { + bool ret = NativeMethods.FbxObject_DisconnectSrcProperty(swigCPtr, FbxProperty.getCPtr(pProperty)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetSrcPropertyCount() { + int ret = NativeMethods.FbxObject_GetSrcPropertyCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetSrcProperty(int pIndex) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_GetSrcProperty__SWIG_0(swigCPtr, pIndex), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetSrcProperty() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_GetSrcProperty__SWIG_1(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindSrcProperty(string pName, int pStartIndex) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindSrcProperty__SWIG_0(swigCPtr, pName, pStartIndex), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindSrcProperty(string pName) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindSrcProperty__SWIG_1(swigCPtr, pName), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectDstProperty(FbxProperty pProperty) { + bool ret = NativeMethods.FbxObject_ConnectDstProperty(swigCPtr, FbxProperty.getCPtr(pProperty)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsConnectedDstProperty(FbxProperty pProperty) { + bool ret = NativeMethods.FbxObject_IsConnectedDstProperty(swigCPtr, FbxProperty.getCPtr(pProperty)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool DisconnectDstProperty(FbxProperty pProperty) { + bool ret = NativeMethods.FbxObject_DisconnectDstProperty(swigCPtr, FbxProperty.getCPtr(pProperty)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetDstPropertyCount() { + int ret = NativeMethods.FbxObject_GetDstPropertyCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetDstProperty(int pIndex) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_GetDstProperty__SWIG_0(swigCPtr, pIndex), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty GetDstProperty() { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_GetDstProperty__SWIG_1(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindDstProperty(string pName, int pStartIndex) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindDstProperty__SWIG_0(swigCPtr, pName, pStartIndex), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxProperty FindDstProperty(string pName) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxObject_FindDstProperty__SWIG_1(swigCPtr, pName), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool AddImplementation(FbxImplementation pImplementation) { + bool ret = NativeMethods.FbxObject_AddImplementation(swigCPtr, FbxImplementation.getCPtr(pImplementation)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool RemoveImplementation(FbxImplementation pImplementation) { + bool ret = NativeMethods.FbxObject_RemoveImplementation(swigCPtr, FbxImplementation.getCPtr(pImplementation)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool HasDefaultImplementation() { + bool ret = NativeMethods.FbxObject_HasDefaultImplementation(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxImplementation GetDefaultImplementation() { + global::System.IntPtr cPtr = NativeMethods.FbxObject_GetDefaultImplementation(swigCPtr); + FbxImplementation ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxImplementation(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SetDefaultImplementation(FbxImplementation pImplementation) { + bool ret = NativeMethods.FbxObject_SetDefaultImplementation(swigCPtr, FbxImplementation.getCPtr(pImplementation)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxObject other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxObject; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxObject).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxObject a, FbxObject b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxObject a, FbxObject b) { + return !(a == b); + } + + public override string ToString() { + string name; + try { name = GetName(); } + catch (System.ArgumentNullException) { name = "(destroyed)"; } + catch (System.NullReferenceException) { name = "(disposed)"; } + return string.Format("{0}({1})", name, GetType().Name); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxObject.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxObject.cs.meta new file mode 100644 index 0000000000..06134976ad --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c86890633bc4a46ea89cdeca2a6800ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPose.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPose.cs new file mode 100644 index 0000000000..62a6906c69 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPose.cs @@ -0,0 +1,119 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPose : FbxObject { + internal FbxPose(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxPose Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxPose_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxPose ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxPose(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxPose Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxPose_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxPose ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxPose(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetIsBindPose(bool pIsBindPose) { + NativeMethods.FbxPose_SetIsBindPose(swigCPtr, pIsBindPose); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool IsBindPose() { + bool ret = NativeMethods.FbxPose_IsBindPose(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetCount() { + int ret = NativeMethods.FbxPose_GetCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Add(FbxNode pNode, FbxMatrix pMatrix, bool pLocalMatrix, bool pMultipleBindPose) { + int ret = NativeMethods.FbxPose_Add__SWIG_0(swigCPtr, FbxNode.getCPtr(pNode), FbxMatrix.getCPtr(pMatrix), pLocalMatrix, pMultipleBindPose); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Add(FbxNode pNode, FbxMatrix pMatrix, bool pLocalMatrix) { + int ret = NativeMethods.FbxPose_Add__SWIG_1(swigCPtr, FbxNode.getCPtr(pNode), FbxMatrix.getCPtr(pMatrix), pLocalMatrix); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Add(FbxNode pNode, FbxMatrix pMatrix) { + int ret = NativeMethods.FbxPose_Add__SWIG_2(swigCPtr, FbxNode.getCPtr(pNode), FbxMatrix.getCPtr(pMatrix)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode GetNode(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxPose_GetNode(swigCPtr, pIndex); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxMatrix GetMatrix(int pIndex) { + FbxMatrix ret = new FbxMatrix(NativeMethods.FbxPose_GetMatrix(swigCPtr, pIndex), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxPose other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxPose; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxPose).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxPose a, FbxPose b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxPose a, FbxPose b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPose.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPose.cs.meta new file mode 100644 index 0000000000..f4e6e117ab --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPose.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1a37e1f30487e42c1bead135d803b95d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxProperty.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxProperty.cs new file mode 100644 index 0000000000..f766fdce46 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxProperty.cs @@ -0,0 +1,531 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxProperty : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxProperty(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxProperty obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup, out bool pWasFound) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_0(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup, out pWasFound), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_1(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName, string pLabel) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_2(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName, pLabel), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxProperty Create(FbxProperty pCompoundProperty, FbxDataType pDataType, string pName) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_3(FbxProperty.getCPtr(pCompoundProperty), FbxDataType.getCPtr(pDataType), pName), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup, out bool pWasFound) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_4(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup, out pWasFound), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName, string pLabel, bool pCheckForDup) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_5(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName, pLabel, pCheckForDup), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName, string pLabel) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_6(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName, pLabel), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static FbxProperty Create(FbxObject pObject, FbxDataType pDataType, string pName) { + FbxProperty ret = new FbxProperty(NativeMethods.FbxProperty_Create__SWIG_7(FbxObject.getCPtr(pObject), FbxDataType.getCPtr(pDataType), pName), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Destroy() { + NativeMethods.FbxProperty_Destroy(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void DestroyRecursively() { + NativeMethods.FbxProperty_DestroyRecursively(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void DestroyChildren() { + NativeMethods.FbxProperty_DestroyChildren(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxDataType GetPropertyDataType() { + FbxDataType ret = new FbxDataType(NativeMethods.FbxProperty_GetPropertyDataType(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetName() { + string ret = NativeMethods.FbxProperty_GetName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetHierarchicalName() { + string ret = NativeMethods.FbxProperty_GetHierarchicalName(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetLabel(bool pReturnNameIfEmpty) { + string ret = NativeMethods.FbxProperty_GetLabel__SWIG_0(swigCPtr, pReturnNameIfEmpty); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetLabel() { + string ret = NativeMethods.FbxProperty_GetLabel__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetLabel(string pLabel) { + NativeMethods.FbxProperty_SetLabel(swigCPtr, pLabel); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxObject GetFbxObject() { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetFbxObject(swigCPtr); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void ModifyFlag(FbxPropertyFlags.EFlags pFlag, bool pValue) { + NativeMethods.FbxProperty_ModifyFlag(swigCPtr, (int)pFlag, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetFlag(FbxPropertyFlags.EFlags pFlag) { + bool ret = NativeMethods.FbxProperty_GetFlag(swigCPtr, (int)pFlag); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyFlags.EFlags GetFlags() { + FbxPropertyFlags.EFlags ret = (FbxPropertyFlags.EFlags)NativeMethods.FbxProperty_GetFlags(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyFlags.EInheritType GetFlagInheritType(FbxPropertyFlags.EFlags pFlag) { + FbxPropertyFlags.EInheritType ret = (FbxPropertyFlags.EInheritType)NativeMethods.FbxProperty_GetFlagInheritType(swigCPtr, (int)pFlag); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SetFlagInheritType(FbxPropertyFlags.EFlags pFlag, FbxPropertyFlags.EInheritType pType) { + bool ret = NativeMethods.FbxProperty_SetFlagInheritType(swigCPtr, (int)pFlag, (int)pType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ModifiedFlag(FbxPropertyFlags.EFlags pFlag) { + bool ret = NativeMethods.FbxProperty_ModifiedFlag(swigCPtr, (int)pFlag); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private bool _equals(FbxProperty pProperty) { + bool ret = NativeMethods.FbxProperty__equals(swigCPtr, FbxProperty.getCPtr(pProperty)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsValid() { + bool ret = NativeMethods.FbxProperty_IsValid(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurveNode GetCurveNode(bool pCreate) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_0(swigCPtr, pCreate); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurveNode GetCurveNode() { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_1(swigCPtr); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurveNode GetCurveNode(FbxAnimStack pAnimStack, bool pCreate) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_2(swigCPtr, FbxAnimStack.getCPtr(pAnimStack), pCreate); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurveNode GetCurveNode(FbxAnimStack pAnimStack) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_3(swigCPtr, FbxAnimStack.getCPtr(pAnimStack)); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurveNode GetCurveNode(FbxAnimLayer pAnimLayer, bool pCreate) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_4(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pCreate); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurveNode GetCurveNode(FbxAnimLayer pAnimLayer) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurveNode__SWIG_5(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer)); + FbxAnimCurveNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurveNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer, bool pCreate) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_0(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pCreate); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_1(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer)); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer, string pChannel, bool pCreate) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_2(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pChannel, pCreate); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer, string pChannel) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_3(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pChannel); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxAnimCurve GetCurve(FbxAnimLayer pAnimLayer, string pName, string pChannel, bool pCreate) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetCurve__SWIG_4(swigCPtr, FbxAnimLayer.getCPtr(pAnimLayer), pName, pChannel, pCreate); + FbxAnimCurve ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimCurve(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectSrcObject(FbxObject pObject, FbxConnection.EType pType) { + bool ret = NativeMethods.FbxProperty_ConnectSrcObject__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), (int)pType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectSrcObject(FbxObject pObject) { + bool ret = NativeMethods.FbxProperty_ConnectSrcObject__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsConnectedSrcObject(FbxObject pObject) { + bool ret = NativeMethods.FbxProperty_IsConnectedSrcObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool DisconnectSrcObject(FbxObject pObject) { + bool ret = NativeMethods.FbxProperty_DisconnectSrcObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool DisconnectAllSrcObject() { + bool ret = NativeMethods.FbxProperty_DisconnectAllSrcObject(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetSrcObjectCount() { + int ret = NativeMethods.FbxProperty_GetSrcObjectCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject GetSrcObject(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetSrcObject__SWIG_0(swigCPtr, pIndex); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject GetSrcObject() { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetSrcObject__SWIG_1(swigCPtr); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxObject FindSrcObjectInternal(string pName, int pStartIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_FindSrcObjectInternal(swigCPtr, pName, pStartIndex); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectDstObject(FbxObject pObject, FbxConnection.EType pType) { + bool ret = NativeMethods.FbxProperty_ConnectDstObject__SWIG_0(swigCPtr, FbxObject.getCPtr(pObject), (int)pType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool ConnectDstObject(FbxObject pObject) { + bool ret = NativeMethods.FbxProperty_ConnectDstObject__SWIG_1(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsConnectedDstObject(FbxObject pObject) { + bool ret = NativeMethods.FbxProperty_IsConnectedDstObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool DisconnectDstObject(FbxObject pObject) { + bool ret = NativeMethods.FbxProperty_DisconnectDstObject(swigCPtr, FbxObject.getCPtr(pObject)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool DisconnectAllDstObject() { + bool ret = NativeMethods.FbxProperty_DisconnectAllDstObject(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetDstObjectCount() { + int ret = NativeMethods.FbxProperty_GetDstObjectCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject GetDstObject(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetDstObject__SWIG_0(swigCPtr, pIndex); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxObject GetDstObject() { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_GetDstObject__SWIG_1(swigCPtr); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxObject FindDstObjectInternal(string pName, int pStartIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxProperty_FindDstObjectInternal(swigCPtr, pName, pStartIndex); + FbxObject ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxObject(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Equals(FbxProperty other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxProperty; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxProperty).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxProperty a, FbxProperty b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxProperty a, FbxProperty b) { + return !(a == b); + } + + public override int GetHashCode() { + uint hash = (uint) GetName().GetHashCode(); + hash = (hash << 11) | (hash >> 21); + hash ^= (uint) GetPropertyDataType().GetHashCode(); + var obj = GetFbxObject(); + if (obj != null) { + hash = (hash << 11) | (hash >> 21); + hash ^= (uint) obj.GetHashCode(); + } + return (int) hash; + } + public override string ToString() { + return GetName(); + } + public FbxObject FindSrcObject(string pName, int pStartIndex = 0) { + if (pName == null) { throw new System.ArgumentNullException("pName"); } + return FindSrcObjectInternal(pName, pStartIndex); + } + + public FbxObject FindDstObject(string pName, int pStartIndex = 0) { + if (pName == null) { throw new System.ArgumentNullException("pName"); } + return FindDstObjectInternal(pName, pStartIndex); + } + + public float GetFloat() { + float ret = NativeMethods.FbxProperty_GetFloat(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetBool() { + bool ret = NativeMethods.FbxProperty_GetBool(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetDouble() { + double ret = NativeMethods.FbxProperty_GetDouble(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble3 GetFbxDouble3() { + var ret = NativeMethods.FbxProperty_GetFbxDouble3(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetString() { + string ret = NativeMethods.FbxProperty_GetString(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxColor GetFbxColor() { + var ret = NativeMethods.FbxProperty_GetFbxColor(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetInt() { + int ret = NativeMethods.FbxProperty_GetInt(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Set(FbxColor pValue) { + bool ret = NativeMethods.FbxProperty_Set__SWIG_1(swigCPtr, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Set(float pValue) { + bool ret = NativeMethods.FbxProperty_Set__SWIG_2(swigCPtr, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Set(string pValue) { + bool ret = NativeMethods.FbxProperty_Set__SWIG_3(swigCPtr, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetFloat(float value) { + NativeMethods.FbxProperty_SetFloat(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetString(string value) { + NativeMethods.FbxProperty_SetString(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetDouble(double value) { + NativeMethods.FbxProperty_SetDouble(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetBool(bool value) { + NativeMethods.FbxProperty_SetBool(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetColor(FbxColor value) { + NativeMethods.FbxProperty_SetColor(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetInt(int value) { + NativeMethods.FbxProperty_SetInt(swigCPtr, value); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxProperty.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxProperty.cs.meta new file mode 100644 index 0000000000..50e0948d5a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxProperty.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ffe2d4f60483649459616ba515f94544 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyBool.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyBool.cs new file mode 100644 index 0000000000..879c98732d --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyBool.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyBool : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyBool(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyBool_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyBool obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyBool Set(bool pValue) { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxPropertyBool_Set(swigCPtr, pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Get() { + bool ret = NativeMethods.FbxPropertyBool_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool EvaluateValue(FbxTime pTime, bool pForceEval) { + bool ret = NativeMethods.FbxPropertyBool_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool EvaluateValue(FbxTime pTime) { + bool ret = NativeMethods.FbxPropertyBool_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool EvaluateValue() { + bool ret = NativeMethods.FbxPropertyBool_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyBool.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyBool.cs.meta new file mode 100644 index 0000000000..a533016f85 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyBool.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 735e12886ba904ccd95a620dff1a0e7a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble.cs new file mode 100644 index 0000000000..6e51e1cbf4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyDouble : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyDouble(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyDouble_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyDouble obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyDouble Set(double pValue) { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxPropertyDouble_Set(swigCPtr, pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double Get() { + double ret = NativeMethods.FbxPropertyDouble_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double EvaluateValue(FbxTime pTime, bool pForceEval) { + double ret = NativeMethods.FbxPropertyDouble_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double EvaluateValue(FbxTime pTime) { + double ret = NativeMethods.FbxPropertyDouble_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double EvaluateValue() { + double ret = NativeMethods.FbxPropertyDouble_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble.cs.meta new file mode 100644 index 0000000000..e89dd2f8a5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6731a5f0547b44e3080df4c2a40a84d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble3.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble3.cs new file mode 100644 index 0000000000..2b38e172d8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble3.cs @@ -0,0 +1,80 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyDouble3 : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyDouble3(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyDouble3_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyDouble3 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyDouble3 Set(FbxDouble3 pValue) { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxPropertyDouble3_Set(swigCPtr, pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble3 Get() { + var ret = NativeMethods.FbxPropertyDouble3_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble3 EvaluateValue(FbxTime pTime, bool pForceEval) { + var ret = NativeMethods.FbxPropertyDouble3_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble3 EvaluateValue(FbxTime pTime) { + var ret = NativeMethods.FbxPropertyDouble3_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDouble3 EvaluateValue() { + var ret = NativeMethods.FbxPropertyDouble3_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new FbxFileTexture GetSrcObject_FileTexture() { + global::System.IntPtr cPtr = NativeMethods.FbxPropertyDouble3_GetSrcObject_FileTexture(swigCPtr); + FbxFileTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxFileTexture(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble3.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble3.cs.meta new file mode 100644 index 0000000000..3257a36b1e --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyDouble3.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d48fd953f668a457a8295160a9668b4d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEAreaLightShape.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEAreaLightShape.cs new file mode 100644 index 0000000000..fce13a627a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEAreaLightShape.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyEAreaLightShape : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyEAreaLightShape(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyEAreaLightShape_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEAreaLightShape obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyEAreaLightShape Set(FbxLight.EAreaLightShape pValue) { + FbxPropertyEAreaLightShape ret = new FbxPropertyEAreaLightShape(NativeMethods.FbxPropertyEAreaLightShape_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EAreaLightShape Get() { + FbxLight.EAreaLightShape ret = (FbxLight.EAreaLightShape)NativeMethods.FbxPropertyEAreaLightShape_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EAreaLightShape EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxLight.EAreaLightShape ret = (FbxLight.EAreaLightShape)NativeMethods.FbxPropertyEAreaLightShape_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EAreaLightShape EvaluateValue(FbxTime pTime) { + FbxLight.EAreaLightShape ret = (FbxLight.EAreaLightShape)NativeMethods.FbxPropertyEAreaLightShape_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EAreaLightShape EvaluateValue() { + FbxLight.EAreaLightShape ret = (FbxLight.EAreaLightShape)NativeMethods.FbxPropertyEAreaLightShape_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEAreaLightShape.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEAreaLightShape.cs.meta new file mode 100644 index 0000000000..79e5f84933 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEAreaLightShape.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e5b45565ed41442e2a30aa00c7b66dde +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEBlendMode.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEBlendMode.cs new file mode 100644 index 0000000000..7fa9afe836 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEBlendMode.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyEBlendMode : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyEBlendMode(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyEBlendMode_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEBlendMode obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyEBlendMode Set(FbxTexture.EBlendMode pValue) { + FbxPropertyEBlendMode ret = new FbxPropertyEBlendMode(NativeMethods.FbxPropertyEBlendMode_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EBlendMode Get() { + FbxTexture.EBlendMode ret = (FbxTexture.EBlendMode)NativeMethods.FbxPropertyEBlendMode_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EBlendMode EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxTexture.EBlendMode ret = (FbxTexture.EBlendMode)NativeMethods.FbxPropertyEBlendMode_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EBlendMode EvaluateValue(FbxTime pTime) { + FbxTexture.EBlendMode ret = (FbxTexture.EBlendMode)NativeMethods.FbxPropertyEBlendMode_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EBlendMode EvaluateValue() { + FbxTexture.EBlendMode ret = (FbxTexture.EBlendMode)NativeMethods.FbxPropertyEBlendMode_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEBlendMode.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEBlendMode.cs.meta new file mode 100644 index 0000000000..85a0849581 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEBlendMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 20224361205784bf6b4daac3ca99df08 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEDecayType.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEDecayType.cs new file mode 100644 index 0000000000..2f3705edf8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEDecayType.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyEDecayType : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyEDecayType(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyEDecayType_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEDecayType obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyEDecayType Set(FbxLight.EDecayType pValue) { + FbxPropertyEDecayType ret = new FbxPropertyEDecayType(NativeMethods.FbxPropertyEDecayType_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EDecayType Get() { + FbxLight.EDecayType ret = (FbxLight.EDecayType)NativeMethods.FbxPropertyEDecayType_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EDecayType EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxLight.EDecayType ret = (FbxLight.EDecayType)NativeMethods.FbxPropertyEDecayType_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EDecayType EvaluateValue(FbxTime pTime) { + FbxLight.EDecayType ret = (FbxLight.EDecayType)NativeMethods.FbxPropertyEDecayType_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EDecayType EvaluateValue() { + FbxLight.EDecayType ret = (FbxLight.EDecayType)NativeMethods.FbxPropertyEDecayType_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEDecayType.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEDecayType.cs.meta new file mode 100644 index 0000000000..15a16b8dd4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEDecayType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d966c893d2fab41d0bb090359fcdb5de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEGateFit.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEGateFit.cs new file mode 100644 index 0000000000..c8f17a2d1c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEGateFit.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyEGateFit : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyEGateFit(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyEGateFit_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEGateFit obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyEGateFit Set(FbxCamera.EGateFit pValue) { + FbxPropertyEGateFit ret = new FbxPropertyEGateFit(NativeMethods.FbxPropertyEGateFit_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera.EGateFit Get() { + FbxCamera.EGateFit ret = (FbxCamera.EGateFit)NativeMethods.FbxPropertyEGateFit_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera.EGateFit EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxCamera.EGateFit ret = (FbxCamera.EGateFit)NativeMethods.FbxPropertyEGateFit_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera.EGateFit EvaluateValue(FbxTime pTime) { + FbxCamera.EGateFit ret = (FbxCamera.EGateFit)NativeMethods.FbxPropertyEGateFit_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera.EGateFit EvaluateValue() { + FbxCamera.EGateFit ret = (FbxCamera.EGateFit)NativeMethods.FbxPropertyEGateFit_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEGateFit.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEGateFit.cs.meta new file mode 100644 index 0000000000..a9d2d8acfa --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEGateFit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c90196042f3333f4f9f9ef7541652f0a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEInheritType.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEInheritType.cs new file mode 100644 index 0000000000..a63dbee43c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEInheritType.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyEInheritType : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyEInheritType(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyEInheritType_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEInheritType obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyEInheritType Set(FbxTransform.EInheritType pValue) { + FbxPropertyEInheritType ret = new FbxPropertyEInheritType(NativeMethods.FbxPropertyEInheritType_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTransform.EInheritType Get() { + FbxTransform.EInheritType ret = (FbxTransform.EInheritType)NativeMethods.FbxPropertyEInheritType_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTransform.EInheritType EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxTransform.EInheritType ret = (FbxTransform.EInheritType)NativeMethods.FbxPropertyEInheritType_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTransform.EInheritType EvaluateValue(FbxTime pTime) { + FbxTransform.EInheritType ret = (FbxTransform.EInheritType)NativeMethods.FbxPropertyEInheritType_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTransform.EInheritType EvaluateValue() { + FbxTransform.EInheritType ret = (FbxTransform.EInheritType)NativeMethods.FbxPropertyEInheritType_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEInheritType.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEInheritType.cs.meta new file mode 100644 index 0000000000..e163662d72 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEInheritType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7c98b3bd4c8d6486d869d5d94b57145f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyELightType.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyELightType.cs new file mode 100644 index 0000000000..ae30ef3185 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyELightType.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyELightType : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyELightType(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyELightType_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyELightType obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyELightType Set(FbxLight.EType pValue) { + FbxPropertyELightType ret = new FbxPropertyELightType(NativeMethods.FbxPropertyELightType_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EType Get() { + FbxLight.EType ret = (FbxLight.EType)NativeMethods.FbxPropertyELightType_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EType EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxLight.EType ret = (FbxLight.EType)NativeMethods.FbxPropertyELightType_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EType EvaluateValue(FbxTime pTime) { + FbxLight.EType ret = (FbxLight.EType)NativeMethods.FbxPropertyELightType_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxLight.EType EvaluateValue() { + FbxLight.EType ret = (FbxLight.EType)NativeMethods.FbxPropertyELightType_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyELightType.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyELightType.cs.meta new file mode 100644 index 0000000000..8796b27fd8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyELightType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 17fe042300f624276812d2a807fa6ede +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEProjectionType.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEProjectionType.cs new file mode 100644 index 0000000000..1d175fb231 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEProjectionType.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyEProjectionType : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyEProjectionType(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyEProjectionType_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEProjectionType obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyEProjectionType Set(FbxCamera.EProjectionType pValue) { + FbxPropertyEProjectionType ret = new FbxPropertyEProjectionType(NativeMethods.FbxPropertyEProjectionType_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera.EProjectionType Get() { + FbxCamera.EProjectionType ret = (FbxCamera.EProjectionType)NativeMethods.FbxPropertyEProjectionType_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera.EProjectionType EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxCamera.EProjectionType ret = (FbxCamera.EProjectionType)NativeMethods.FbxPropertyEProjectionType_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera.EProjectionType EvaluateValue(FbxTime pTime) { + FbxCamera.EProjectionType ret = (FbxCamera.EProjectionType)NativeMethods.FbxPropertyEProjectionType_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCamera.EProjectionType EvaluateValue() { + FbxCamera.EProjectionType ret = (FbxCamera.EProjectionType)NativeMethods.FbxPropertyEProjectionType_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEProjectionType.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEProjectionType.cs.meta new file mode 100644 index 0000000000..2e7e8fa3ad --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEProjectionType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 023967275b7b14089b6df5dc499a48dc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEWrapMode.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEWrapMode.cs new file mode 100644 index 0000000000..b1875db2f9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEWrapMode.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyEWrapMode : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyEWrapMode(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyEWrapMode_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEWrapMode obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyEWrapMode Set(FbxTexture.EWrapMode pValue) { + FbxPropertyEWrapMode ret = new FbxPropertyEWrapMode(NativeMethods.FbxPropertyEWrapMode_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EWrapMode Get() { + FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxPropertyEWrapMode_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EWrapMode EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxPropertyEWrapMode_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EWrapMode EvaluateValue(FbxTime pTime) { + FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxPropertyEWrapMode_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EWrapMode EvaluateValue() { + FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxPropertyEWrapMode_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEWrapMode.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEWrapMode.cs.meta new file mode 100644 index 0000000000..5ae6baf239 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEWrapMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: db99f782ab5404108812d2dc6197fe96 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEntryView.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEntryView.cs new file mode 100644 index 0000000000..23d52e5539 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEntryView.cs @@ -0,0 +1,64 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyEntryView : FbxEntryView { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyEntryView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyEntryView_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyEntryView obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxPropertyEntryView() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxPropertyEntryView(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyEntryView(FbxBindingTableEntry pEntry, bool pAsSource, bool pCreate) : this(NativeMethods.new_FbxPropertyEntryView__SWIG_0(FbxBindingTableEntry.getCPtr(pEntry), pAsSource, pCreate), true) { + } + + public FbxPropertyEntryView(FbxBindingTableEntry pEntry, bool pAsSource) : this(NativeMethods.new_FbxPropertyEntryView__SWIG_1(FbxBindingTableEntry.getCPtr(pEntry), pAsSource), true) { + } + + public string GetProperty() { + string ret = NativeMethods.FbxPropertyEntryView_GetProperty(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetProperty(string pPropertyName) { + NativeMethods.FbxPropertyEntryView_SetProperty(swigCPtr, pPropertyName); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEntryView.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEntryView.cs.meta new file mode 100644 index 0000000000..be95daac31 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyEntryView.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fa1b8519b3ee141e18b6edc0d4ded2b3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFlags.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFlags.cs new file mode 100644 index 0000000000..03f849f5db --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFlags.cs @@ -0,0 +1,60 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public static class FbxPropertyFlags { + // virtual void Dispose() { } + + public enum EInheritType { + eOverride, + eInherit, + eDeleted + } + + public enum EFlags { + eNone = 0, + eStatic = 1 << 0, + eAnimatable = 1 << 1, + eAnimated = 1 << 2, + eImported = 1 << 3, + eUserDefined = 1 << 4, + eHidden = 1 << 5, + eNotSavable = 1 << 6, + eLockedMember0 = 1 << 7, + eLockedMember1 = 1 << 8, + eLockedMember2 = 1 << 9, + eLockedMember3 = 1 << 10, + eLockedAll = eLockedMember0|eLockedMember1|eLockedMember2|eLockedMember3, + eMutedMember0 = 1 << 11, + eMutedMember1 = 1 << 12, + eMutedMember2 = 1 << 13, + eMutedMember3 = 1 << 14, + eMutedAll = eMutedMember0|eMutedMember1|eMutedMember2|eMutedMember3, + eUIDisabled = 1 << 15, + eUIGroup = 1 << 16, + eUIBoolGroup = 1 << 17, + eUIExpanded = 1 << 18, + eUINoCaption = 1 << 19, + eUIPanel = 1 << 20, + eUILeftLabel = 1 << 21, + eUIHidden = 1 << 22, + eCtrlFlags = eStatic|eAnimatable|eAnimated|eImported|eUserDefined|eHidden|eNotSavable|eLockedAll|eMutedAll, + eUIFlags = eUIDisabled|eUIGroup|eUIBoolGroup|eUIExpanded|eUINoCaption|eUIPanel|eUILeftLabel|eUIHidden, + eAllFlags = eCtrlFlags|eUIFlags, + eFlagCount = 23 + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFlags.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFlags.cs.meta new file mode 100644 index 0000000000..ba12560889 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFlags.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c7f7fc0dc879141669a0e2cc17701aa4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFloat.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFloat.cs new file mode 100644 index 0000000000..a0dc49db73 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFloat.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyFloat : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyFloat(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyFloat_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyFloat obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public new FbxPropertyFloat Set(float pValue) { + FbxPropertyFloat ret = new FbxPropertyFloat(NativeMethods.FbxPropertyFloat_Set(swigCPtr, pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public float Get() { + float ret = NativeMethods.FbxPropertyFloat_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public float EvaluateValue(FbxTime pTime, bool pForceEval) { + float ret = NativeMethods.FbxPropertyFloat_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public float EvaluateValue(FbxTime pTime) { + float ret = NativeMethods.FbxPropertyFloat_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public float EvaluateValue() { + float ret = NativeMethods.FbxPropertyFloat_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFloat.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFloat.cs.meta new file mode 100644 index 0000000000..8a5544c3cd --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyFloat.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5cc1ffd10089d4bb8be5f57232ac3820 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyInt.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyInt.cs new file mode 100644 index 0000000000..5630ae86ef --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyInt.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyInt : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyInt(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyInt_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyInt obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyInt Set(int pValue) { + FbxPropertyInt ret = new FbxPropertyInt(NativeMethods.FbxPropertyInt_Set(swigCPtr, pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Get() { + int ret = NativeMethods.FbxPropertyInt_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int EvaluateValue(FbxTime pTime, bool pForceEval) { + int ret = NativeMethods.FbxPropertyInt_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int EvaluateValue(FbxTime pTime) { + int ret = NativeMethods.FbxPropertyInt_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int EvaluateValue() { + int ret = NativeMethods.FbxPropertyInt_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyInt.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyInt.cs.meta new file mode 100644 index 0000000000..8c708b7bc1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyInt.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 773834fd99e17429fb61aa4ac09956c9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyMarkerELook.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyMarkerELook.cs new file mode 100644 index 0000000000..2d858132d6 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyMarkerELook.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyMarkerELook : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyMarkerELook(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyMarkerELook_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyMarkerELook obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyMarkerELook Set(FbxMarker.ELook pValue) { + FbxPropertyMarkerELook ret = new FbxPropertyMarkerELook(NativeMethods.FbxPropertyMarkerELook_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxMarker.ELook Get() { + FbxMarker.ELook ret = (FbxMarker.ELook)NativeMethods.FbxPropertyMarkerELook_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxMarker.ELook EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxMarker.ELook ret = (FbxMarker.ELook)NativeMethods.FbxPropertyMarkerELook_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxMarker.ELook EvaluateValue(FbxTime pTime) { + FbxMarker.ELook ret = (FbxMarker.ELook)NativeMethods.FbxPropertyMarkerELook_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxMarker.ELook EvaluateValue() { + FbxMarker.ELook ret = (FbxMarker.ELook)NativeMethods.FbxPropertyMarkerELook_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyMarkerELook.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyMarkerELook.cs.meta new file mode 100644 index 0000000000..b014ca14e5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyMarkerELook.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb702ccfc8a5644698b94dc37b156666 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyNullELook.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyNullELook.cs new file mode 100644 index 0000000000..79a7c799a0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyNullELook.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyNullELook : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyNullELook(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyNullELook_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyNullELook obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxPropertyNullELook Set(FbxNull.ELook pValue) { + FbxPropertyNullELook ret = new FbxPropertyNullELook(NativeMethods.FbxPropertyNullELook_Set(swigCPtr, (int)pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNull.ELook Get() { + FbxNull.ELook ret = (FbxNull.ELook)NativeMethods.FbxPropertyNullELook_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNull.ELook EvaluateValue(FbxTime pTime, bool pForceEval) { + FbxNull.ELook ret = (FbxNull.ELook)NativeMethods.FbxPropertyNullELook_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNull.ELook EvaluateValue(FbxTime pTime) { + FbxNull.ELook ret = (FbxNull.ELook)NativeMethods.FbxPropertyNullELook_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNull.ELook EvaluateValue() { + FbxNull.ELook ret = (FbxNull.ELook)NativeMethods.FbxPropertyNullELook_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyNullELook.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyNullELook.cs.meta new file mode 100644 index 0000000000..9b85884e5f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyNullELook.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9c784e9c2801b479188c637903773eca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyString.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyString.cs new file mode 100644 index 0000000000..2f05620bf6 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyString.cs @@ -0,0 +1,73 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxPropertyString : FbxProperty { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxPropertyString(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxPropertyString_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxPropertyString obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + throw new global::System.MethodAccessException("C++ destructor does not have public access"); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public new FbxPropertyString Set(string pValue) { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxPropertyString_Set(swigCPtr, pValue), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string Get() { + string ret = NativeMethods.FbxPropertyString_Get(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string EvaluateValue(FbxTime pTime, bool pForceEval) { + string ret = NativeMethods.FbxPropertyString_EvaluateValue__SWIG_0(swigCPtr, FbxTime.getCPtr(pTime), pForceEval); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string EvaluateValue(FbxTime pTime) { + string ret = NativeMethods.FbxPropertyString_EvaluateValue__SWIG_1(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string EvaluateValue() { + string ret = NativeMethods.FbxPropertyString_EvaluateValue__SWIG_2(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyString.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyString.cs.meta new file mode 100644 index 0000000000..4f9cea85aa --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxPropertyString.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 23d8ba516a775482e8404392dc800c5f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxQuaternion.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxQuaternion.cs new file mode 100644 index 0000000000..6d2d680742 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxQuaternion.cs @@ -0,0 +1,307 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxQuaternion : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxQuaternion(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxQuaternion obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxQuaternion() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxQuaternion(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxQuaternion() : this(NativeMethods.new_FbxQuaternion__SWIG_0(), true) { + } + + public FbxQuaternion(FbxQuaternion pV) : this(NativeMethods.new_FbxQuaternion__SWIG_1(FbxQuaternion.getCPtr(pV)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxQuaternion(double pX, double pY, double pZ, double pW) : this(NativeMethods.new_FbxQuaternion__SWIG_2(pX, pY, pZ, pW), true) { + } + + public FbxQuaternion(double pX, double pY, double pZ) : this(NativeMethods.new_FbxQuaternion__SWIG_3(pX, pY, pZ), true) { + } + + public FbxQuaternion(FbxVector4 pAxis, double pDegree) : this(NativeMethods.new_FbxQuaternion__SWIG_4(pAxis, pDegree), true) { + } + + private double GetAtUnchecked(int pIndex) { + double ret = NativeMethods.FbxQuaternion_GetAtUnchecked(swigCPtr, pIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private void SetAtUnchecked(int pIndex, double pValue) { + NativeMethods.FbxQuaternion_SetAtUnchecked(swigCPtr, pIndex, pValue); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void Set(double pX, double pY, double pZ, double pW) { + NativeMethods.FbxQuaternion_Set__SWIG_0(swigCPtr, pX, pY, pZ, pW); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void Set(double pX, double pY, double pZ) { + NativeMethods.FbxQuaternion_Set__SWIG_1(swigCPtr, pX, pY, pZ); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + private FbxQuaternion operator_Add(double pValue) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Add__SWIG_0(swigCPtr, pValue), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxQuaternion operator_Sub(double pValue) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Sub__SWIG_0(swigCPtr, pValue), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxQuaternion operator_Mul(double pValue) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Mul__SWIG_0(swigCPtr, pValue), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxQuaternion operator_Div(double pValue) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Div__SWIG_0(swigCPtr, pValue), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxQuaternion operator_Negate() { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Negate(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxQuaternion operator_Add(FbxQuaternion pQuaternion) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Add__SWIG_1(swigCPtr, FbxQuaternion.getCPtr(pQuaternion)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxQuaternion operator_Sub(FbxQuaternion pQuaternion) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Sub__SWIG_1(swigCPtr, FbxQuaternion.getCPtr(pQuaternion)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxQuaternion operator_Mul(FbxQuaternion pOther) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Mul__SWIG_1(swigCPtr, FbxQuaternion.getCPtr(pOther)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private FbxQuaternion operator_Div(FbxQuaternion pOther) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_operator_Div__SWIG_1(swigCPtr, FbxQuaternion.getCPtr(pOther)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxQuaternion Product(FbxQuaternion pOther) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_Product(swigCPtr, FbxQuaternion.getCPtr(pOther)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double DotProduct(FbxQuaternion pQuaternion) { + double ret = NativeMethods.FbxQuaternion_DotProduct(swigCPtr, FbxQuaternion.getCPtr(pQuaternion)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Normalize() { + NativeMethods.FbxQuaternion_Normalize(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void Conjugate() { + NativeMethods.FbxQuaternion_Conjugate(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double Length() { + double ret = NativeMethods.FbxQuaternion_Length(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Inverse() { + NativeMethods.FbxQuaternion_Inverse(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetAxisAngle(FbxVector4 pAxis, double pDegree) { + NativeMethods.FbxQuaternion_SetAxisAngle(swigCPtr, pAxis, pDegree); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxQuaternion Slerp(FbxQuaternion pOther, double pWeight) { + FbxQuaternion ret = new FbxQuaternion(NativeMethods.FbxQuaternion_Slerp(swigCPtr, FbxQuaternion.getCPtr(pOther), pWeight), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void ComposeSphericalXYZ(FbxVector4 pEuler) { + NativeMethods.FbxQuaternion_ComposeSphericalXYZ(swigCPtr, pEuler); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxVector4 DecomposeSphericalXYZ() { + var ret = NativeMethods.FbxQuaternion_DecomposeSphericalXYZ(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private bool _equals(FbxQuaternion pV) { + bool ret = NativeMethods.FbxQuaternion__equals(swigCPtr, FbxQuaternion.getCPtr(pV)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Compare(FbxQuaternion pQ2, double pThreshold) { + int ret = NativeMethods.FbxQuaternion_Compare__SWIG_0(swigCPtr, FbxQuaternion.getCPtr(pQ2), pThreshold); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int Compare(FbxQuaternion pQ2) { + int ret = NativeMethods.FbxQuaternion_Compare__SWIG_1(swigCPtr, FbxQuaternion.getCPtr(pQ2)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetAt(int index) { return this[index]; } + public void SetAt(int index, double value) { this[index] = value; } + public double this[int index] { + get { + if (index < 0 || index >= 4) { throw new System.ArgumentOutOfRangeException("index"); } + return GetAtUnchecked(index); + } + set { + if (index < 0 || index >= 4) { throw new System.ArgumentOutOfRangeException("index"); } + SetAtUnchecked(index, value); + } + } + public double X { get { return GetAtUnchecked(0); } set { SetAtUnchecked(0, value); } } + public double Y { get { return GetAtUnchecked(1); } set { SetAtUnchecked(1, value); } } + public double Z { get { return GetAtUnchecked(2); } set { SetAtUnchecked(2, value); } } + public double W { get { return GetAtUnchecked(3); } set { SetAtUnchecked(3, value); } } + + public static FbxQuaternion operator * (FbxQuaternion a, FbxQuaternion b) { + return a.operator_Mul(b); + } + + public static FbxQuaternion operator * (FbxQuaternion a, double b) { + return a.operator_Mul(b); + } + public static FbxQuaternion operator * (double a, FbxQuaternion b) { + return b.operator_Mul(a); + } + + public static FbxQuaternion operator / (FbxQuaternion a, FbxQuaternion b) { + return a.operator_Div(b); + } + + public static FbxQuaternion operator / (FbxQuaternion a, double b) { + return a.operator_Div(b); + } + + public static FbxQuaternion operator + (FbxQuaternion a, FbxQuaternion b) { + return a.operator_Add(b); + } + + public static FbxQuaternion operator - (FbxQuaternion a, FbxQuaternion b) { + return a.operator_Sub(b); + } + + public static FbxQuaternion operator + (FbxQuaternion a, double b) { + return a.operator_Add(b); + } + + public static FbxQuaternion operator - (FbxQuaternion a, double b) { + return a.operator_Sub(b); + } + + public static FbxQuaternion operator - (FbxQuaternion a) { + return a.operator_Negate(); + } + + public bool Equals(FbxQuaternion other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxQuaternion; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxQuaternion).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxQuaternion a, FbxQuaternion b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxQuaternion a, FbxQuaternion b) { + return !(a == b); + } + + public override int GetHashCode() { + int ret = NativeMethods.FbxQuaternion_GetHashCode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override string ToString() { + return string.Format("<{0},{1},{2},{3}>", X, Y, Z, W); + } +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxQuaternion.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxQuaternion.cs.meta new file mode 100644 index 0000000000..02b4378f80 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxQuaternion.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7417625f7f1314babbd7592ce5a504cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxScene.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxScene.cs new file mode 100644 index 0000000000..3c0c72f9bd --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxScene.cs @@ -0,0 +1,127 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxScene : FbxDocument { + internal FbxScene(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxScene Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxScene_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxScene ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxScene(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxScene Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxScene_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxScene ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxScene(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxNode GetRootNode() { + global::System.IntPtr cPtr = NativeMethods.FbxScene_GetRootNode(swigCPtr); + FbxNode ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxNode(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPose GetPose(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxScene_GetPose(swigCPtr, pIndex); + FbxPose ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxPose(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool AddPose(FbxPose pPose) { + bool ret = NativeMethods.FbxScene_AddPose(swigCPtr, FbxPose.getCPtr(pPose)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxDocumentInfo GetSceneInfo() { + global::System.IntPtr cPtr = NativeMethods.FbxScene_GetSceneInfo(swigCPtr); + FbxDocumentInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxDocumentInfo(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetSceneInfo(FbxDocumentInfo pSceneInfo) { + NativeMethods.FbxScene_SetSceneInfo(swigCPtr, FbxDocumentInfo.getCPtr(pSceneInfo)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxGlobalSettings GetGlobalSettings() { + FbxGlobalSettings ret = new FbxGlobalSettings(NativeMethods.FbxScene_GetGlobalSettings(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetCurrentAnimationStack(FbxAnimStack pAnimStack) { + NativeMethods.FbxScene_SetCurrentAnimationStack(swigCPtr, FbxAnimStack.getCPtr(pAnimStack)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxAnimStack GetCurrentAnimationStack() { + global::System.IntPtr cPtr = NativeMethods.FbxScene_GetCurrentAnimationStack(swigCPtr); + FbxAnimStack ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxAnimStack(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetNodeCount() { + int ret = NativeMethods.FbxScene_GetNodeCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxScene other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxScene; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxScene).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxScene a, FbxScene b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxScene a, FbxScene b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxScene.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxScene.cs.meta new file mode 100644 index 0000000000..b3c93e0200 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxScene.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6615bb78f3c0f4c8fb3397673a9cd588 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSemanticEntryView.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSemanticEntryView.cs new file mode 100644 index 0000000000..01c52f3ab5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSemanticEntryView.cs @@ -0,0 +1,76 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxSemanticEntryView : FbxEntryView { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal FbxSemanticEntryView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NativeMethods.FbxSemanticEntryView_SWIGUpcast(cPtr), cMemoryOwn) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxSemanticEntryView obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxSemanticEntryView() { + Dispose(); + } + + public override void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxSemanticEntryView(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + base.Dispose(); + } + } + + public FbxSemanticEntryView(FbxBindingTableEntry pEntry, bool pAsSource, bool pCreate) : this(NativeMethods.new_FbxSemanticEntryView__SWIG_0(FbxBindingTableEntry.getCPtr(pEntry), pAsSource, pCreate), true) { + } + + public FbxSemanticEntryView(FbxBindingTableEntry pEntry, bool pAsSource) : this(NativeMethods.new_FbxSemanticEntryView__SWIG_1(FbxBindingTableEntry.getCPtr(pEntry), pAsSource), true) { + } + + public void SetSemantic(string pSemantic) { + NativeMethods.FbxSemanticEntryView_SetSemantic(swigCPtr, pSemantic); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public string GetSemantic(bool pAppendIndex) { + string ret = NativeMethods.FbxSemanticEntryView_GetSemantic__SWIG_0(swigCPtr, pAppendIndex); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetSemantic() { + string ret = NativeMethods.FbxSemanticEntryView_GetSemantic__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetIndex() { + int ret = NativeMethods.FbxSemanticEntryView_GetIndex(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSemanticEntryView.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSemanticEntryView.cs.meta new file mode 100644 index 0000000000..cae88ad2d3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSemanticEntryView.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 30055dc975b71431a9f3d790caefea97 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxShape.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxShape.cs new file mode 100644 index 0000000000..97cc7d24f9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxShape.cs @@ -0,0 +1,71 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxShape : FbxGeometryBase { + internal FbxShape(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxShape Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxShape_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxShape Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxShape_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxShape(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxShape other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxShape; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxShape).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxShape a, FbxShape b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxShape a, FbxShape b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxShape.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxShape.cs.meta new file mode 100644 index 0000000000..ae506a84b8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxShape.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 315d74bc72af844dd98b8b817dfe19f0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSharpProgressCallback.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSharpProgressCallback.cs new file mode 100644 index 0000000000..9acd23715f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSharpProgressCallback.cs @@ -0,0 +1,89 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +internal abstract class FbxSharpProgressCallback : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxSharpProgressCallback(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxSharpProgressCallback obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxSharpProgressCallback() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxSharpProgressCallback(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxSharpProgressCallback() : this(NativeMethods.new_FbxSharpProgressCallback(), true) { + SwigDirectorConnect(); + } + + public virtual bool Progress(float percentage, string status) { + bool ret = NativeMethods.FbxSharpProgressCallback_Progress(swigCPtr, percentage, status); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + internal class Wrapper : FbxSharpProgressCallback { + Globals.FbxProgressCallback m_callback; + internal Wrapper (Globals.FbxProgressCallback callback) { + m_callback = callback; + } + public override bool Progress(float percentage, string status) { + return m_callback(percentage, status); + } + } + + private void SwigDirectorConnect() { + if (SwigDerivedClassHasMethod("Progress", swigMethodTypes0)) + swigDelegate0 = new SwigDelegateFbxSharpProgressCallback_0(SwigDirectorProgress); + NativeMethods.FbxSharpProgressCallback_director_connect(swigCPtr, swigDelegate0); + } + + private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes) { + global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, global::System.Reflection.BindingFlags.Public | global::System.Reflection.BindingFlags.NonPublic | global::System.Reflection.BindingFlags.Instance, null, methodTypes, null); + bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(FbxSharpProgressCallback)); + return hasDerivedMethod; + } + + private bool SwigDirectorProgress(float percentage, string status) { + return Progress(percentage, status); + } + + public delegate bool SwigDelegateFbxSharpProgressCallback_0(float percentage, string status); + + private SwigDelegateFbxSharpProgressCallback_0 swigDelegate0; + + private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(float), typeof(string) }; +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSharpProgressCallback.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSharpProgressCallback.cs.meta new file mode 100644 index 0000000000..08a7b76569 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSharpProgressCallback.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bbc0fa4b9656e40b29c62fb38dc5b10f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkeleton.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkeleton.cs new file mode 100644 index 0000000000..372e9b4966 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkeleton.cs @@ -0,0 +1,192 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxSkeleton : FbxNodeAttribute { + internal FbxSkeleton(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxSkeleton Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSkeleton_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxSkeleton ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSkeleton(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxSkeleton Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSkeleton_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxSkeleton ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSkeleton(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Reset() { + NativeMethods.FbxSkeleton_Reset(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetSkeletonType(FbxSkeleton.EType pSkeletonType) { + NativeMethods.FbxSkeleton_SetSkeletonType(swigCPtr, (int)pSkeletonType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxSkeleton.EType GetSkeletonType() { + FbxSkeleton.EType ret = (FbxSkeleton.EType)NativeMethods.FbxSkeleton_GetSkeletonType(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetSkeletonTypeIsSet() { + bool ret = NativeMethods.FbxSkeleton_GetSkeletonTypeIsSet(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxSkeleton.EType GetSkeletonTypeDefaultValue() { + FbxSkeleton.EType ret = (FbxSkeleton.EType)NativeMethods.FbxSkeleton_GetSkeletonTypeDefaultValue(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetLimbLengthDefaultValue() { + double ret = NativeMethods.FbxSkeleton_GetLimbLengthDefaultValue(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetLimbNodeSizeDefaultValue() { + double ret = NativeMethods.FbxSkeleton_GetLimbNodeSizeDefaultValue(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool SetLimbNodeColor(FbxColor pColor) { + bool ret = NativeMethods.FbxSkeleton_SetLimbNodeColor(swigCPtr, pColor); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxColor GetLimbNodeColor() { + var ret = NativeMethods.FbxSkeleton_GetLimbNodeColor(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetLimbNodeColorIsSet() { + bool ret = NativeMethods.FbxSkeleton_GetLimbNodeColorIsSet(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxColor GetLimbNodeColorDefaultValue() { + var ret = NativeMethods.FbxSkeleton_GetLimbNodeColorDefaultValue(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsSkeletonRoot() { + bool ret = NativeMethods.FbxSkeleton_IsSkeletonRoot(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static string sSize { + get { + string ret = NativeMethods.FbxSkeleton_sSize_get(); + return ret; + } + } + + public static string sLimbLength { + get { + string ret = NativeMethods.FbxSkeleton_sLimbLength_get(); + return ret; + } + } + + public static double sDefaultSize { + get { + double ret = NativeMethods.FbxSkeleton_sDefaultSize_get(); + return ret; + } + } + + public static double sDefaultLimbLength { + get { + double ret = NativeMethods.FbxSkeleton_sDefaultLimbLength_get(); + return ret; + } + } + + public FbxPropertyDouble Size { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSkeleton_Size_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble LimbLength { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSkeleton_LimbLength_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxSkeleton other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxSkeleton; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxSkeleton).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxSkeleton a, FbxSkeleton b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxSkeleton a, FbxSkeleton b) { + return !(a == b); + } + + public new enum EType { + eRoot, + eLimb, + eLimbNode, + eEffector + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkeleton.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkeleton.cs.meta new file mode 100644 index 0000000000..24e258abba --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkeleton.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9e3b7699fe8ac419f90b9881bd1a37f8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkin.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkin.cs new file mode 100644 index 0000000000..ed7ce54a79 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkin.cs @@ -0,0 +1,84 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxSkin : FbxDeformer { + internal FbxSkin(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxSkin Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSkin_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxSkin ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSkin(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxSkin Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSkin_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxSkin ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSkin(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool AddCluster(FbxCluster pCluster) { + bool ret = NativeMethods.FbxSkin_AddCluster(swigCPtr, FbxCluster.getCPtr(pCluster)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxCluster GetCluster(int pIndex) { + global::System.IntPtr cPtr = NativeMethods.FbxSkin_GetCluster(swigCPtr, pIndex); + FbxCluster ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxCluster(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxSkin other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxSkin; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxSkin).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxSkin a, FbxSkin b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxSkin a, FbxSkin b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkin.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkin.cs.meta new file mode 100644 index 0000000000..5ee5a3f7ab --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSkin.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f5aba6ae06a334c028629dc4521c335b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxStatus.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxStatus.cs new file mode 100644 index 0000000000..930356c29c --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxStatus.cs @@ -0,0 +1,148 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxStatus : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxStatus(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxStatus obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxStatus() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxStatus(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxStatus() : this(NativeMethods.new_FbxStatus__SWIG_0(), true) { + } + + public FbxStatus(FbxStatus.EStatusCode pCode) : this(NativeMethods.new_FbxStatus__SWIG_1((int)pCode), true) { + } + + public FbxStatus(FbxStatus rhs) : this(NativeMethods.new_FbxStatus__SWIG_2(FbxStatus.getCPtr(rhs)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + private bool _equals(FbxStatus rhs) { + bool ret = NativeMethods.FbxStatus__equals(swigCPtr, FbxStatus.getCPtr(rhs)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Error() { + bool ret = NativeMethods.FbxStatus_Error(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void Clear() { + NativeMethods.FbxStatus_Clear(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxStatus.EStatusCode GetCode() { + FbxStatus.EStatusCode ret = (FbxStatus.EStatusCode)NativeMethods.FbxStatus_GetCode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetCode(FbxStatus.EStatusCode rhs) { + NativeMethods.FbxStatus_SetCode__SWIG_0(swigCPtr, (int)rhs); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public string GetErrorString() { + string ret = NativeMethods.FbxStatus_GetErrorString(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Equals(FbxStatus other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxStatus; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxStatus).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxStatus a, FbxStatus b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxStatus a, FbxStatus b) { + return !(a == b); + } + + public override int GetHashCode() { return (int)GetCode(); } + public static bool operator == (EStatusCode a, FbxStatus b) { return (b != null ? a == b.GetCode() : false); } + public static bool operator != (EStatusCode a, FbxStatus b) { return (b != null ? a != b.GetCode() : false); } + public static bool operator == (FbxStatus a, EStatusCode b) { return (a != null ? a.GetCode() == b : false); } + public static bool operator != (FbxStatus a, EStatusCode b) { return (a != null ? a.GetCode() != b : false); } + + public override string ToString() { + return GetCode().ToString() + ": " + GetErrorString(); + } + public void SetCode(FbxStatus.EStatusCode rhs, string pErrorMsg) { + NativeMethods.FbxStatus_SetCode__SWIG_1(swigCPtr, (int)rhs, pErrorMsg); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public enum EStatusCode { + eSuccess = 0, + eFailure, + eInsufficientMemory, + eInvalidParameter, + eIndexOutOfRange, + ePasswordError, + eInvalidFileVersion, + eInvalidFile, + eSceneCheckFail + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxStatus.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxStatus.cs.meta new file mode 100644 index 0000000000..bc84d0a9f7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxStatus.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 770c4fbcc2881470680f3982e7066ce6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSubDeformer.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSubDeformer.cs new file mode 100644 index 0000000000..5019c841f9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSubDeformer.cs @@ -0,0 +1,71 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxSubDeformer : FbxObject { + internal FbxSubDeformer(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxSubDeformer Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSubDeformer_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxSubDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSubDeformer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxSubDeformer Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSubDeformer_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxSubDeformer ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSubDeformer(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxSubDeformer other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxSubDeformer; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxSubDeformer).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxSubDeformer a, FbxSubDeformer b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxSubDeformer a, FbxSubDeformer b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSubDeformer.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSubDeformer.cs.meta new file mode 100644 index 0000000000..44c3a09364 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSubDeformer.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 603737c18daa4456db32e0846eb6e645 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceLambert.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceLambert.cs new file mode 100644 index 0000000000..a80dce0baf --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceLambert.cs @@ -0,0 +1,198 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxSurfaceLambert : FbxSurfaceMaterial { + internal FbxSurfaceLambert(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxSurfaceLambert Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSurfaceLambert_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxSurfaceLambert ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfaceLambert(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxSurfaceLambert Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSurfaceLambert_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxSurfaceLambert ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfaceLambert(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble3 Emissive { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfaceLambert_Emissive_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble EmissiveFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfaceLambert_EmissiveFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Ambient { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfaceLambert_Ambient_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble AmbientFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfaceLambert_AmbientFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Diffuse { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfaceLambert_Diffuse_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble DiffuseFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfaceLambert_DiffuseFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 NormalMap { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfaceLambert_NormalMap_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Bump { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfaceLambert_Bump_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble BumpFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfaceLambert_BumpFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 TransparentColor { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfaceLambert_TransparentColor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble TransparencyFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfaceLambert_TransparencyFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 DisplacementColor { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfaceLambert_DisplacementColor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble DisplacementFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfaceLambert_DisplacementFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 VectorDisplacementColor { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfaceLambert_VectorDisplacementColor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble VectorDisplacementFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfaceLambert_VectorDisplacementFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxSurfaceLambert other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxSurfaceLambert; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxSurfaceLambert).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxSurfaceLambert a, FbxSurfaceLambert b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxSurfaceLambert a, FbxSurfaceLambert b) { + return !(a == b); + } + + public static FbxSurfaceLambert fromMaterial(FbxSurfaceMaterial m) { + global::System.IntPtr cPtr = NativeMethods.FbxSurfaceLambert_fromMaterial(FbxSurfaceMaterial.getCPtr(m)); + FbxSurfaceLambert ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfaceLambert(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceLambert.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceLambert.cs.meta new file mode 100644 index 0000000000..5c64bdc66d --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceLambert.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4bb3d0e47a2144cfca737a6966c83503 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceMaterial.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceMaterial.cs new file mode 100644 index 0000000000..a783fda270 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceMaterial.cs @@ -0,0 +1,255 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxSurfaceMaterial : FbxObject { + internal FbxSurfaceMaterial(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxSurfaceMaterial Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSurfaceMaterial_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxSurfaceMaterial ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfaceMaterial(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxSurfaceMaterial Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSurfaceMaterial_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxSurfaceMaterial ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfaceMaterial(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static string sShadingModel { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sShadingModel_get(); + return ret; + } + } + + public static string sMultiLayer { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sMultiLayer_get(); + return ret; + } + } + + public static string sEmissive { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sEmissive_get(); + return ret; + } + } + + public static string sEmissiveFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sEmissiveFactor_get(); + return ret; + } + } + + public static string sAmbient { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sAmbient_get(); + return ret; + } + } + + public static string sAmbientFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sAmbientFactor_get(); + return ret; + } + } + + public static string sDiffuse { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sDiffuse_get(); + return ret; + } + } + + public static string sDiffuseFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sDiffuseFactor_get(); + return ret; + } + } + + public static string sSpecular { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sSpecular_get(); + return ret; + } + } + + public static string sSpecularFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sSpecularFactor_get(); + return ret; + } + } + + public static string sShininess { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sShininess_get(); + return ret; + } + } + + public static string sBump { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sBump_get(); + return ret; + } + } + + public static string sNormalMap { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sNormalMap_get(); + return ret; + } + } + + public static string sBumpFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sBumpFactor_get(); + return ret; + } + } + + public static string sTransparentColor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sTransparentColor_get(); + return ret; + } + } + + public static string sTransparencyFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sTransparencyFactor_get(); + return ret; + } + } + + public static string sReflection { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sReflection_get(); + return ret; + } + } + + public static string sReflectionFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sReflectionFactor_get(); + return ret; + } + } + + public static string sDisplacementColor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sDisplacementColor_get(); + return ret; + } + } + + public static string sDisplacementFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sDisplacementFactor_get(); + return ret; + } + } + + public static string sVectorDisplacementColor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sVectorDisplacementColor_get(); + return ret; + } + } + + public static string sVectorDisplacementFactor { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sVectorDisplacementFactor_get(); + return ret; + } + } + + public FbxPropertyString ShadingModel { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxSurfaceMaterial_ShadingModel_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool MultiLayer { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxSurfaceMaterial_MultiLayer_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static bool sMultiLayerDefault { + get { + bool ret = NativeMethods.FbxSurfaceMaterial_sMultiLayerDefault_get(); + return ret; + } + } + + public static string sShadingModelDefault { + get { + string ret = NativeMethods.FbxSurfaceMaterial_sShadingModelDefault_get(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxSurfaceMaterial other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxSurfaceMaterial; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxSurfaceMaterial).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxSurfaceMaterial a, FbxSurfaceMaterial b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxSurfaceMaterial a, FbxSurfaceMaterial b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceMaterial.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceMaterial.cs.meta new file mode 100644 index 0000000000..c3f93d6dfb --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfaceMaterial.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1491f17c0b1384fdea5d2686c888f29a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfacePhong.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfacePhong.cs new file mode 100644 index 0000000000..8ab4ca7908 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfacePhong.cs @@ -0,0 +1,111 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxSurfacePhong : FbxSurfaceLambert { + internal FbxSurfacePhong(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxSurfacePhong Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSurfacePhong_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxSurfacePhong ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfacePhong(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxSurfacePhong Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxSurfacePhong_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxSurfacePhong ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxSurfacePhong(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble3 Specular { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfacePhong_Specular_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble SpecularFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfacePhong_SpecularFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble Shininess { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfacePhong_Shininess_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Reflection { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxSurfacePhong_Reflection_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble ReflectionFactor { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxSurfacePhong_ReflectionFactor_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxSurfacePhong other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxSurfacePhong; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxSurfacePhong).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxSurfacePhong a, FbxSurfacePhong b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxSurfacePhong a, FbxSurfacePhong b) { + return !(a == b); + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfacePhong.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfacePhong.cs.meta new file mode 100644 index 0000000000..21e5829e3a --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSurfacePhong.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 295618e8257f34acf858555a9d5b2ba4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSystemUnit.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSystemUnit.cs new file mode 100644 index 0000000000..e0b6dd7c83 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSystemUnit.cs @@ -0,0 +1,245 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxSystemUnit : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxSystemUnit(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxSystemUnit obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxSystemUnit() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxSystemUnit(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public class ConversionOptions : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal ConversionOptions(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ConversionOptions obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~ConversionOptions() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxSystemUnit_ConversionOptions(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public ConversionOptions() : this(NativeMethods.new_FbxSystemUnit_ConversionOptions(), true) { + } + + } + + public FbxSystemUnit(double pScaleFactor, double pMultiplier) : this(NativeMethods.new_FbxSystemUnit__SWIG_0(pScaleFactor, pMultiplier), true) { + } + + public FbxSystemUnit(double pScaleFactor) : this(NativeMethods.new_FbxSystemUnit__SWIG_1(pScaleFactor), true) { + } + + public static FbxSystemUnit mm { + get { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxSystemUnit_mm_get(), false); + return ret; + } + } + + public static FbxSystemUnit dm { + get { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxSystemUnit_dm_get(), false); + return ret; + } + } + + public static FbxSystemUnit cm { + get { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxSystemUnit_cm_get(), false); + return ret; + } + } + + public static FbxSystemUnit m { + get { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxSystemUnit_m_get(), false); + return ret; + } + } + + public static FbxSystemUnit km { + get { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxSystemUnit_km_get(), false); + return ret; + } + } + + public static FbxSystemUnit Inch { + get { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxSystemUnit_Inch_get(), false); + return ret; + } + } + + public static FbxSystemUnit Foot { + get { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxSystemUnit_Foot_get(), false); + return ret; + } + } + + public static FbxSystemUnit Yard { + get { + FbxSystemUnit ret = new FbxSystemUnit(NativeMethods.FbxSystemUnit_Yard_get(), false); + return ret; + } + } + + public void ConvertScene(FbxScene pScene, FbxSystemUnit.ConversionOptions pOptions) { + NativeMethods.FbxSystemUnit_ConvertScene__SWIG_0(swigCPtr, FbxScene.getCPtr(pScene), FbxSystemUnit.ConversionOptions.getCPtr(pOptions)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void ConvertScene(FbxScene pScene) { + NativeMethods.FbxSystemUnit_ConvertScene__SWIG_1(swigCPtr, FbxScene.getCPtr(pScene)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetScaleFactor() { + double ret = NativeMethods.FbxSystemUnit_GetScaleFactor(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetScaleFactorAsString(bool pAbbreviated) { + string ret = NativeMethods.FbxSystemUnit_GetScaleFactorAsString__SWIG_0(swigCPtr, pAbbreviated); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public string GetScaleFactorAsString() { + string ret = NativeMethods.FbxSystemUnit_GetScaleFactorAsString__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetMultiplier() { + double ret = NativeMethods.FbxSystemUnit_GetMultiplier(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private bool _equals(FbxSystemUnit pOther) { + bool ret = NativeMethods.FbxSystemUnit__equals(swigCPtr, FbxSystemUnit.getCPtr(pOther)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetConversionFactorTo(FbxSystemUnit pTarget) { + double ret = NativeMethods.FbxSystemUnit_GetConversionFactorTo(swigCPtr, FbxSystemUnit.getCPtr(pTarget)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetConversionFactorFrom(FbxSystemUnit pSource) { + double ret = NativeMethods.FbxSystemUnit_GetConversionFactorFrom(swigCPtr, FbxSystemUnit.getCPtr(pSource)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool Equals(FbxSystemUnit other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxSystemUnit; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxSystemUnit).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxSystemUnit a, FbxSystemUnit b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxSystemUnit a, FbxSystemUnit b) { + return !(a == b); + } + + public override int GetHashCode() { + int ret = NativeMethods.FbxSystemUnit_GetHashCode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override string ToString() { + var unitName = GetScaleFactorAsString(); + if (unitName == "custom unit") { + unitName += string.Format(" ({0} cm)", GetScaleFactor()); + } + var multiplier = GetMultiplier(); + if (multiplier != 1.0) { + unitName += string.Format(" multiplier {0}", multiplier); + } + return unitName; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSystemUnit.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSystemUnit.cs.meta new file mode 100644 index 0000000000..3c8941b2cd --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxSystemUnit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e813165883253461cb800efe048dfef9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTexture.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTexture.cs new file mode 100644 index 0000000000..65f62d2546 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTexture.cs @@ -0,0 +1,462 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxTexture : FbxObject { + internal FbxTexture(global::System.IntPtr cPtr, bool ignored) : base(cPtr, ignored) { } + + // override void Dispose() {base.Dispose();} + + public new static FbxTexture Create(FbxManager pManager, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxTexture_Create__SWIG_0(FbxManager.getCPtr(pManager), pName); + FbxTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxTexture(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public new static FbxTexture Create(FbxObject pContainer, string pName) { + global::System.IntPtr cPtr = NativeMethods.FbxTexture_Create__SWIG_1(FbxObject.getCPtr(pContainer), pName); + FbxTexture ret = (cPtr == global::System.IntPtr.Zero) ? null : new FbxTexture(cPtr, false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxPropertyDouble Alpha { + get { + FbxPropertyDouble ret = new FbxPropertyDouble(NativeMethods.FbxTexture_Alpha_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyEWrapMode WrapModeU { + get { + FbxPropertyEWrapMode ret = new FbxPropertyEWrapMode(NativeMethods.FbxTexture_WrapModeU_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyEWrapMode WrapModeV { + get { + FbxPropertyEWrapMode ret = new FbxPropertyEWrapMode(NativeMethods.FbxTexture_WrapModeV_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool UVSwap { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxTexture_UVSwap_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyBool PremultiplyAlpha { + get { + FbxPropertyBool ret = new FbxPropertyBool(NativeMethods.FbxTexture_PremultiplyAlpha_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Translation { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Translation_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Rotation { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Rotation_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 Scaling { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_Scaling_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 RotationPivot { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_RotationPivot_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyDouble3 ScalingPivot { + get { + FbxPropertyDouble3 ret = new FbxPropertyDouble3(NativeMethods.FbxTexture_ScalingPivot_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyEBlendMode CurrentTextureBlendMode { + get { + FbxPropertyEBlendMode ret = new FbxPropertyEBlendMode(NativeMethods.FbxTexture_CurrentTextureBlendMode_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public FbxPropertyString UVSet { + get { + FbxPropertyString ret = new FbxPropertyString(NativeMethods.FbxTexture_UVSet_get(swigCPtr), false); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static string sVectorSpace { + get { + string ret = NativeMethods.FbxTexture_sVectorSpace_get(); + return ret; + } + } + + public static string sVectorSpaceWorld { + get { + string ret = NativeMethods.FbxTexture_sVectorSpaceWorld_get(); + return ret; + } + } + + public static string sVectorSpaceObject { + get { + string ret = NativeMethods.FbxTexture_sVectorSpaceObject_get(); + return ret; + } + } + + public static string sVectorSpaceTangent { + get { + string ret = NativeMethods.FbxTexture_sVectorSpaceTangent_get(); + return ret; + } + } + + public static string sVectorEncoding { + get { + string ret = NativeMethods.FbxTexture_sVectorEncoding_get(); + return ret; + } + } + + public static string sVectorEncodingFP { + get { + string ret = NativeMethods.FbxTexture_sVectorEncodingFP_get(); + return ret; + } + } + + public static string sVectorEncodingSE { + get { + string ret = NativeMethods.FbxTexture_sVectorEncodingSE_get(); + return ret; + } + } + + public virtual void Reset() { + NativeMethods.FbxTexture_Reset(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetSwapUV(bool pSwapUV) { + NativeMethods.FbxTexture_SetSwapUV(swigCPtr, pSwapUV); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetSwapUV() { + bool ret = NativeMethods.FbxTexture_GetSwapUV(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetPremultiplyAlpha(bool pPremultiplyAlpha) { + NativeMethods.FbxTexture_SetPremultiplyAlpha(swigCPtr, pPremultiplyAlpha); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool GetPremultiplyAlpha() { + bool ret = NativeMethods.FbxTexture_GetPremultiplyAlpha(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetAlphaSource(FbxTexture.EAlphaSource pAlphaSource) { + NativeMethods.FbxTexture_SetAlphaSource(swigCPtr, (int)pAlphaSource); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTexture.EAlphaSource GetAlphaSource() { + FbxTexture.EAlphaSource ret = (FbxTexture.EAlphaSource)NativeMethods.FbxTexture_GetAlphaSource(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetCropping(int pLeft, int pTop, int pRight, int pBottom) { + NativeMethods.FbxTexture_SetCropping(swigCPtr, pLeft, pTop, pRight, pBottom); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public int GetCroppingLeft() { + int ret = NativeMethods.FbxTexture_GetCroppingLeft(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetCroppingTop() { + int ret = NativeMethods.FbxTexture_GetCroppingTop(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetCroppingRight() { + int ret = NativeMethods.FbxTexture_GetCroppingRight(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetCroppingBottom() { + int ret = NativeMethods.FbxTexture_GetCroppingBottom(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetMappingType(FbxTexture.EMappingType pMappingType) { + NativeMethods.FbxTexture_SetMappingType(swigCPtr, (int)pMappingType); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTexture.EMappingType GetMappingType() { + FbxTexture.EMappingType ret = (FbxTexture.EMappingType)NativeMethods.FbxTexture_GetMappingType(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetPlanarMappingNormal(FbxTexture.EPlanarMappingNormal pPlanarMappingNormal) { + NativeMethods.FbxTexture_SetPlanarMappingNormal(swigCPtr, (int)pPlanarMappingNormal); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTexture.EPlanarMappingNormal GetPlanarMappingNormal() { + FbxTexture.EPlanarMappingNormal ret = (FbxTexture.EPlanarMappingNormal)NativeMethods.FbxTexture_GetPlanarMappingNormal(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetTextureUse(FbxTexture.ETextureUse pTextureUse) { + NativeMethods.FbxTexture_SetTextureUse(swigCPtr, (int)pTextureUse); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTexture.ETextureUse GetTextureUse() { + FbxTexture.ETextureUse ret = (FbxTexture.ETextureUse)NativeMethods.FbxTexture_GetTextureUse(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetWrapMode(FbxTexture.EWrapMode pWrapU, FbxTexture.EWrapMode pWrapV) { + NativeMethods.FbxTexture_SetWrapMode(swigCPtr, (int)pWrapU, (int)pWrapV); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTexture.EWrapMode GetWrapModeU() { + FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxTexture_GetWrapModeU(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTexture.EWrapMode GetWrapModeV() { + FbxTexture.EWrapMode ret = (FbxTexture.EWrapMode)NativeMethods.FbxTexture_GetWrapModeV(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetBlendMode(FbxTexture.EBlendMode pBlendMode) { + NativeMethods.FbxTexture_SetBlendMode(swigCPtr, (int)pBlendMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTexture.EBlendMode GetBlendMode() { + FbxTexture.EBlendMode ret = (FbxTexture.EBlendMode)NativeMethods.FbxTexture_GetBlendMode(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetDefaultAlpha(double pAlpha) { + NativeMethods.FbxTexture_SetDefaultAlpha(swigCPtr, pAlpha); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetDefaultAlpha() { + double ret = NativeMethods.FbxTexture_GetDefaultAlpha(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetTranslation(double pU, double pV) { + NativeMethods.FbxTexture_SetTranslation(swigCPtr, pU, pV); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetTranslationU() { + double ret = NativeMethods.FbxTexture_GetTranslationU(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetTranslationV() { + double ret = NativeMethods.FbxTexture_GetTranslationV(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetRotation(double pU, double pV, double pW) { + NativeMethods.FbxTexture_SetRotation__SWIG_0(swigCPtr, pU, pV, pW); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetRotation(double pU, double pV) { + NativeMethods.FbxTexture_SetRotation__SWIG_1(swigCPtr, pU, pV); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetRotationU() { + double ret = NativeMethods.FbxTexture_GetRotationU(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetRotationV() { + double ret = NativeMethods.FbxTexture_GetRotationV(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetRotationW() { + double ret = NativeMethods.FbxTexture_GetRotationW(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void SetScale(double pU, double pV) { + NativeMethods.FbxTexture_SetScale(swigCPtr, pU, pV); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public double GetScaleU() { + double ret = NativeMethods.FbxTexture_GetScaleU(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetScaleV() { + double ret = NativeMethods.FbxTexture_GetScaleV(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public override int GetHashCode(){ + return swigCPtr.Handle.GetHashCode(); + } + + public bool Equals(FbxTexture other) { + if (object.ReferenceEquals(other, null)) { return false; } + return this.swigCPtr.Handle.Equals (other.swigCPtr.Handle); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxTexture; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxTexture).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxTexture a, FbxTexture b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxTexture a, FbxTexture b) { + return !(a == b); + } + + public enum EWrapMode { + eRepeat, + eClamp + } + + public enum EBlendMode { + eTranslucent, + eAdditive, + eModulate, + eModulate2, + eOver + } + + public enum EAlphaSource { + eNone, + eRGBIntensity, + eBlack + } + + public enum EMappingType { + eNull, + ePlanar, + eSpherical, + eCylindrical, + eBox, + eFace, + eUV, + eEnvironment + } + + public enum EPlanarMappingNormal { + ePlanarNormalX, + ePlanarNormalY, + ePlanarNormalZ + } + + public enum ETextureUse { + eStandard, + eShadowMap, + eLightMap, + eSphericalReflectionMap, + eSphereReflectionMap, + eBumpNormalMap + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTexture.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTexture.cs.meta new file mode 100644 index 0000000000..0df392b945 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTexture.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a7446ee18a534f3dacdeaa9756c4ebc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTime.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTime.cs new file mode 100644 index 0000000000..7742a78023 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTime.cs @@ -0,0 +1,360 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxTime : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxTime(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxTime obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxTime() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxTime(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxTime() : this(NativeMethods.new_FbxTime(), true) { + } + + public static void SetGlobalTimeMode(FbxTime.EMode pTimeMode) { + NativeMethods.FbxTime_SetGlobalTimeMode((int)pTimeMode); + } + + public static FbxTime.EMode GetGlobalTimeMode() { + FbxTime.EMode ret = (FbxTime.EMode)NativeMethods.FbxTime_GetGlobalTimeMode(); + return ret; + } + + public static void SetGlobalTimeProtocol(FbxTime.EProtocol pTimeProtocol) { + NativeMethods.FbxTime_SetGlobalTimeProtocol((int)pTimeProtocol); + } + + public static FbxTime.EProtocol GetGlobalTimeProtocol() { + FbxTime.EProtocol ret = (FbxTime.EProtocol)NativeMethods.FbxTime_GetGlobalTimeProtocol(); + return ret; + } + + public static double GetFrameRate(FbxTime.EMode pTimeMode) { + double ret = NativeMethods.FbxTime_GetFrameRate((int)pTimeMode); + return ret; + } + + public static FbxTime.EMode ConvertFrameRateToTimeMode(double pFrameRate, double pPrecision) { + FbxTime.EMode ret = (FbxTime.EMode)NativeMethods.FbxTime_ConvertFrameRateToTimeMode__SWIG_0(pFrameRate, pPrecision); + return ret; + } + + public static FbxTime.EMode ConvertFrameRateToTimeMode(double pFrameRate) { + FbxTime.EMode ret = (FbxTime.EMode)NativeMethods.FbxTime_ConvertFrameRateToTimeMode__SWIG_1(pFrameRate); + return ret; + } + + public long GetRaw() { + long ret = NativeMethods.FbxTime_GetRaw(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public long GetMilliSeconds() { + long ret = NativeMethods.FbxTime_GetMilliSeconds(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetSecondDouble() { + double ret = NativeMethods.FbxTime_GetSecondDouble(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetTime(out int pHour, out int pMinute, out int pSecond, out int pFrame, out int pField, out int pResidual, FbxTime.EMode pTimeMode) { + bool ret = NativeMethods.FbxTime_GetTime__SWIG_0(swigCPtr, out pHour, out pMinute, out pSecond, out pFrame, out pField, out pResidual, (int)pTimeMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool GetTime(out int pHour, out int pMinute, out int pSecond, out int pFrame, out int pField, out int pResidual) { + bool ret = NativeMethods.FbxTime_GetTime__SWIG_1(swigCPtr, out pHour, out pMinute, out pSecond, out pFrame, out pField, out pResidual); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTime GetFramedTime(bool pRound) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_GetFramedTime__SWIG_0(swigCPtr, pRound), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTime GetFramedTime() { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_GetFramedTime__SWIG_1(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetHourCount() { + int ret = NativeMethods.FbxTime_GetHourCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetMinuteCount() { + int ret = NativeMethods.FbxTime_GetMinuteCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetSecondCount() { + int ret = NativeMethods.FbxTime_GetSecondCount(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public long GetFrameCount(FbxTime.EMode pTimeMode) { + long ret = NativeMethods.FbxTime_GetFrameCount__SWIG_0(swigCPtr, (int)pTimeMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public long GetFrameCount() { + long ret = NativeMethods.FbxTime_GetFrameCount__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetFrameCountPrecise(FbxTime.EMode pTimeMode) { + double ret = NativeMethods.FbxTime_GetFrameCountPrecise__SWIG_0(swigCPtr, (int)pTimeMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public double GetFrameCountPrecise() { + double ret = NativeMethods.FbxTime_GetFrameCountPrecise__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public long GetFieldCount(FbxTime.EMode pTimeMode) { + long ret = NativeMethods.FbxTime_GetFieldCount__SWIG_0(swigCPtr, (int)pTimeMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public long GetFieldCount() { + long ret = NativeMethods.FbxTime_GetFieldCount__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetResidual(FbxTime.EMode pTimeMode) { + int ret = NativeMethods.FbxTime_GetResidual__SWIG_0(swigCPtr, (int)pTimeMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetResidual() { + int ret = NativeMethods.FbxTime_GetResidual__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static bool IsDropFrame(FbxTime.EMode pTimeMode) { + bool ret = NativeMethods.FbxTime_IsDropFrame__SWIG_0((int)pTimeMode); + return ret; + } + + public static bool IsDropFrame() { + bool ret = NativeMethods.FbxTime_IsDropFrame__SWIG_1(); + return ret; + } + + public char GetFrameSeparator(FbxTime.EMode pTimeMode) { + byte ret = NativeMethods.FbxTime_GetFrameSeparator__SWIG_0(swigCPtr, (int)pTimeMode); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return System.Convert.ToChar(ret); + } + + public char GetFrameSeparator() { + byte ret = NativeMethods.FbxTime_GetFrameSeparator__SWIG_1(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return System.Convert.ToChar(ret); + } + + private string GetTimeStringNoOptionalArgs(FbxTime.EElement pStart, FbxTime.EElement pEnd, FbxTime.EMode pTimeMode, FbxTime.EProtocol pTimeFormat) { + string ret = NativeMethods.FbxTime_GetTimeStringNoOptionalArgs(swigCPtr, (int)pStart, (int)pEnd, (int)pTimeMode, (int)pTimeFormat); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public static long GetOneFrameValue(FbxTime.EMode pTimeMode) { + long ret = NativeMethods.FbxTime_GetOneFrameValue__SWIG_0((int)pTimeMode); + return ret; + } + + public static long GetOneFrameValue() { + long ret = NativeMethods.FbxTime_GetOneFrameValue__SWIG_1(); + return ret; + } + + public override bool Equals(object obj) { + if (object.ReferenceEquals(obj, null)) { return false; } + if (! (obj is FbxTime)) { return false; } + return CompareTo((FbxTime)obj) == 0; + } + public int CompareTo(object other) { + if (object.ReferenceEquals(other, null)) { return 1; } + if (! (other is FbxTime)) { throw new System.ArgumentException("other is not the same type as this instance of FbxTime"); } + return CompareTo((FbxTime)other); + } + static int _compare(FbxTime a, FbxTime b) { + if (object.ReferenceEquals(a, b)) { return 0; } + if (object.ReferenceEquals(a, null)) { return -1; } + if (object.ReferenceEquals(b, null)) { return 1; } + return a.CompareTo(b); + } + public static bool operator < (FbxTime a, FbxTime b) { return _compare(a, b) < 0; } + public static bool operator <= (FbxTime a, FbxTime b) { return _compare(a, b) <= 0; } + public static bool operator == (FbxTime a, FbxTime b) { return _compare(a, b) == 0; } + public static bool operator != (FbxTime a, FbxTime b) { return _compare(a, b) != 0; } + public static bool operator >= (FbxTime a, FbxTime b) { return _compare(a, b) >= 0; } + public static bool operator > (FbxTime a, FbxTime b) { return _compare(a, b) > 0; } + public bool Equals(FbxTime other) { return CompareTo(other) == 0; } + + public override int GetHashCode() { return GetRaw().GetHashCode(); } + public int CompareTo(FbxTime other) { + if (object.ReferenceEquals(other, null)) { return 1; } + return GetRaw().CompareTo(other.GetRaw()); + } + + public static FbxTime FromRaw(long pTime) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromRaw(pTime), true); + return ret; + } + + public static FbxTime FromMilliSeconds(long pMilliSeconds) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromMilliSeconds(pMilliSeconds), true); + return ret; + } + + public static FbxTime FromSecondDouble(double pTime) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromSecondDouble(pTime), true); + return ret; + } + + private static FbxTime FromTimeNoOptionalArgs(int pHour, int pMinute, int pSecond, int pFrame, int pField, int pResidual, FbxTime.EMode pTimeMode) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromTimeNoOptionalArgs(pHour, pMinute, pSecond, pFrame, pField, pResidual, (int)pTimeMode), true); + return ret; + } + + public static FbxTime FromTime(int pHour, int pMinute, int pSecond, int pFrame=0, int pField=0, int pResidual=0, EMode pTimeMode=EMode.eDefaultMode) { + return FromTimeNoOptionalArgs(pHour, pMinute, pSecond, pFrame, pField, pResidual, pTimeMode); + } + + public static FbxTime FromFrame(long pFrames, FbxTime.EMode pTimeMode) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromFrame__SWIG_0(pFrames, (int)pTimeMode), true); + return ret; + } + + public static FbxTime FromFrame(long pFrames) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromFrame__SWIG_1(pFrames), true); + return ret; + } + + public static FbxTime FromFramePrecise(double pFrames, FbxTime.EMode pTimeMode) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromFramePrecise__SWIG_0(pFrames, (int)pTimeMode), true); + return ret; + } + + public static FbxTime FromFramePrecise(double pFrames) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromFramePrecise__SWIG_1(pFrames), true); + return ret; + } + + private static FbxTime FromTimeStringNoOptionalArgs(string pTime, FbxTime.EMode pTimeMode, FbxTime.EProtocol pTimeFormat) { + FbxTime ret = new FbxTime(NativeMethods.FbxTime_FromTimeStringNoOptionalArgs(pTime, (int)pTimeMode, (int)pTimeFormat), true); + return ret; + } + + public static FbxTime FromTimeString(string pTime, EMode pTimeMode=EMode.eDefaultMode, EProtocol pTimeFormat=EProtocol.eDefaultProtocol) { + return FbxTime.FromTimeStringNoOptionalArgs(pTime, pTimeMode, pTimeFormat); + } + + public string GetTimeString( + EElement pStart = EElement.eHours, + EElement pEnd = EElement.eResidual, + EMode pTimeMode = EMode.eDefaultMode, + EProtocol pTimeFormat = EProtocol.eDefaultProtocol) + { + return GetTimeStringNoOptionalArgs(pStart, pEnd, pTimeMode, pTimeFormat); + } + + public enum EMode { + eDefaultMode, + eFrames120, + eFrames100, + eFrames60, + eFrames50, + eFrames48, + eFrames30, + eFrames30Drop, + eNTSCDropFrame, + eNTSCFullFrame, + ePAL, + eFrames24, + eFrames1000, + eFilmFullFrame, + eCustom, + eFrames96, + eFrames72, + eFrames59dot94, + eFrames119dot88, + eModesCount + } + + public enum EProtocol { + eSMPTE, + eFrameCount, + eDefaultProtocol + } + + public enum EElement { + eHours, + eMinutes, + eSeconds, + eFrames, + eField, + eResidual + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTime.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTime.cs.meta new file mode 100644 index 0000000000..4378146365 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTime.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 39f11fe5a421b4f668349b48a59eee24 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTimeSpan.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTimeSpan.cs new file mode 100644 index 0000000000..08a6d885bd --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTimeSpan.cs @@ -0,0 +1,171 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class FbxTimeSpan : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FbxTimeSpan(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FbxTimeSpan obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FbxTimeSpan() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + NativeMethods.delete_FbxTimeSpan(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public FbxTimeSpan() : this(NativeMethods.new_FbxTimeSpan__SWIG_0(), true) { + } + + public FbxTimeSpan(FbxTime pStart, FbxTime pStop) : this(NativeMethods.new_FbxTimeSpan__SWIG_1(FbxTime.getCPtr(pStart), FbxTime.getCPtr(pStop)), true) { + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void Set(FbxTime pStart, FbxTime pStop) { + NativeMethods.FbxTimeSpan_Set(swigCPtr, FbxTime.getCPtr(pStart), FbxTime.getCPtr(pStop)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetStart(FbxTime pStart) { + NativeMethods.FbxTimeSpan_SetStart(swigCPtr, FbxTime.getCPtr(pStart)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void SetStop(FbxTime pStop) { + NativeMethods.FbxTimeSpan_SetStop(swigCPtr, FbxTime.getCPtr(pStop)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public FbxTime GetStart() { + FbxTime ret = new FbxTime(NativeMethods.FbxTimeSpan_GetStart(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTime GetStop() { + FbxTime ret = new FbxTime(NativeMethods.FbxTimeSpan_GetStop(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTime GetDuration() { + FbxTime ret = new FbxTime(NativeMethods.FbxTimeSpan_GetDuration(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTime GetSignedDuration() { + FbxTime ret = new FbxTime(NativeMethods.FbxTimeSpan_GetSignedDuration(swigCPtr), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public int GetDirection() { + int ret = NativeMethods.FbxTimeSpan_GetDirection(swigCPtr); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public bool IsInside(FbxTime pTime) { + bool ret = NativeMethods.FbxTimeSpan_IsInside(swigCPtr, FbxTime.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public FbxTimeSpan Intersect(FbxTimeSpan pTime) { + FbxTimeSpan ret = new FbxTimeSpan(NativeMethods.FbxTimeSpan_Intersect(swigCPtr, FbxTimeSpan.getCPtr(pTime)), true); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + private bool _equals(FbxTimeSpan pTime) { + bool ret = NativeMethods.FbxTimeSpan__equals(swigCPtr, FbxTimeSpan.getCPtr(pTime)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + return ret; + } + + public void UnionAssignment(FbxTimeSpan pSpan, int pDirection) { + NativeMethods.FbxTimeSpan_UnionAssignment__SWIG_0(swigCPtr, FbxTimeSpan.getCPtr(pSpan), pDirection); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public void UnionAssignment(FbxTimeSpan pSpan) { + NativeMethods.FbxTimeSpan_UnionAssignment__SWIG_1(swigCPtr, FbxTimeSpan.getCPtr(pSpan)); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public bool Equals(FbxTimeSpan other) { + if (object.ReferenceEquals(other, null)) { return false; } + return _equals(other); + } + + public override bool Equals(object obj){ + if (object.ReferenceEquals(obj, null)) { return false; } + /* is obj a subclass of this type; if so use our Equals */ + var typed = obj as FbxTimeSpan; + if (!object.ReferenceEquals(typed, null)) { + return this.Equals(typed); + } + /* are we a subclass of the other type; if so use their Equals */ + if (typeof(FbxTimeSpan).IsSubclassOf(obj.GetType())) { + return obj.Equals(this); + } + /* types are unrelated; can't be a match */ + return false; + } + + public static bool operator == (FbxTimeSpan a, FbxTimeSpan b) { + if (object.ReferenceEquals(a, b)) { return true; } + if (object.ReferenceEquals(a, null) || object.ReferenceEquals(b, null)) { return false; } + return a.Equals(b); + } + + public static bool operator != (FbxTimeSpan a, FbxTimeSpan b) { + return !(a == b); + } + + public override int GetHashCode() { + long a = GetStart().GetRaw(); + long b = GetStop().GetRaw(); + int hash = (int)a; + hash = (hash << 9) | (hash >> 23); + hash ^= (int)(a >> 32); + hash = (hash << 9) | (hash >> 23); + hash ^= (int)b; + hash = (hash << 9) | (hash >> 23); + hash ^= (int)(b >> 32); + return hash; + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTimeSpan.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTimeSpan.cs.meta new file mode 100644 index 0000000000..c4b657939f --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTimeSpan.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2f153fec4a08f4de4b49301e6846f2d7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTransform.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTransform.cs new file mode 100644 index 0000000000..22ad7f4c20 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTransform.cs @@ -0,0 +1,27 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public static class FbxTransform { + // virtual void Dispose() { } + + public enum EInheritType { + eInheritRrSs, + eInheritRSrs, + eInheritRrs + } + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTransform.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTransform.cs.meta new file mode 100644 index 0000000000..ae0a15dbf9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/FbxTransform.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 55e511863d80d476b9359e83dac5eafc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/Globals.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/Globals.cs new file mode 100644 index 0000000000..3e1d2f7b31 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/Globals.cs @@ -0,0 +1,890 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public class Globals { + public static void SetControlPoints(FbxGeometryBase mesh, System.IntPtr f) { + NativeMethods.SetControlPoints(FbxGeometryBase.getCPtr(mesh), f); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public static void GetControlPoints(FbxGeometryBase mesh, System.IntPtr f) { + NativeMethods.GetControlPoints(FbxGeometryBase.getCPtr(mesh), f); + if (NativeMethods.SWIGPendingException.Pending) throw NativeMethods.SWIGPendingException.Retrieve(); + } + + public static void CopyVector3ToFbxVector4(FbxLayerElementArrayTemplateFbxVector4 layerElement, System.IntPtr f) { + NativeMethods.CopyVector3ToFbxVector4(FbxLayerElementArrayTemplateFbxVector4.getCPtr(layerElement), f); + } + + public static void CopyColorToFbxColor(FbxLayerElementArrayTemplateFbxColor layerElement, System.IntPtr f) { + NativeMethods.CopyColorToFbxColor(FbxLayerElementArrayTemplateFbxColor.getCPtr(layerElement), f); + } + + public static void CopyVector4ToFbxVector4(FbxLayerElementArrayTemplateFbxVector4 layerElement, System.IntPtr f) { + NativeMethods.CopyVector4ToFbxVector4(FbxLayerElementArrayTemplateFbxVector4.getCPtr(layerElement), f); + } + + public static void CopyVector2ToFbxVector2(FbxLayerElementArrayTemplateFbxVector2 layerElement, System.IntPtr f) { + NativeMethods.CopyVector2ToFbxVector2(FbxLayerElementArrayTemplateFbxVector2.getCPtr(layerElement), f); + } + + public static void CopyFbxVector2ToVector2(FbxLayerElementArrayTemplateFbxVector2 layerElement, System.IntPtr f) { + NativeMethods.CopyFbxVector2ToVector2(FbxLayerElementArrayTemplateFbxVector2.getCPtr(layerElement), f); + } + + public static void CopyFbxVector4ToVector3(FbxLayerElementArrayTemplateFbxVector4 layerElement, System.IntPtr f) { + NativeMethods.CopyFbxVector4ToVector3(FbxLayerElementArrayTemplateFbxVector4.getCPtr(layerElement), f); + } + + public static FbxDataType FbxUndefinedDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxUndefinedDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxBoolDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxBoolDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxCharDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxCharDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxUCharDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxUCharDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxShortDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxShortDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxUShortDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxUShortDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxIntDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxIntDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxUIntDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxUIntDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLongLongDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLongLongDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxULongLongDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxULongLongDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxFloatDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxFloatDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxHalfFloatDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxHalfFloatDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxDoubleDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxDoubleDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxDouble2DT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxDouble2DT_get(), false); + return ret; + } + } + + public static FbxDataType FbxDouble3DT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxDouble3DT_get(), false); + return ret; + } + } + + public static FbxDataType FbxDouble4DT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxDouble4DT_get(), false); + return ret; + } + } + + public static FbxDataType FbxDouble4x4DT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxDouble4x4DT_get(), false); + return ret; + } + } + + public static FbxDataType FbxEnumDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxEnumDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxStringDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxStringDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTimeDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTimeDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxReferenceDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxReferenceDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxBlobDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxBlobDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxDistanceDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxDistanceDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxDateTimeDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxDateTimeDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxColor3DT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxColor3DT_get(), false); + return ret; + } + } + + public static FbxDataType FbxColor4DT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxColor4DT_get(), false); + return ret; + } + } + + public static FbxDataType FbxCompoundDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxCompoundDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxReferenceObjectDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxReferenceObjectDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxReferencePropertyDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxReferencePropertyDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxVisibilityDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxVisibilityDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxVisibilityInheritanceDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxVisibilityInheritanceDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxUrlDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxUrlDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxXRefUrlDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxXRefUrlDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTranslationDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTranslationDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxRotationDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxRotationDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxScalingDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxScalingDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxQuaternionDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxQuaternionDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLocalTranslationDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLocalTranslationDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLocalRotationDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLocalRotationDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLocalScalingDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLocalScalingDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLocalQuaternionDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLocalQuaternionDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTransformMatrixDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTransformMatrixDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTranslationMatrixDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTranslationMatrixDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxRotationMatrixDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxRotationMatrixDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxScalingMatrixDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxScalingMatrixDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialEmissiveDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialEmissiveDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialEmissiveFactorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialEmissiveFactorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialAmbientDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialAmbientDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialAmbientFactorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialAmbientFactorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialDiffuseDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialDiffuseDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialDiffuseFactorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialDiffuseFactorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialBumpDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialBumpDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialNormalMapDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialNormalMapDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialTransparentColorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialTransparentColorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialTransparencyFactorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialTransparencyFactorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialSpecularDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialSpecularDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialSpecularFactorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialSpecularFactorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialShininessDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialShininessDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialReflectionDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialReflectionDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialReflectionFactorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialReflectionFactorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialDisplacementDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialDisplacementDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialVectorDisplacementDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialVectorDisplacementDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialCommonFactorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialCommonFactorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxMaterialCommonTextureDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxMaterialCommonTextureDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementUndefinedDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementUndefinedDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementNormalDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementNormalDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementBinormalDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementBinormalDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementTangentDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementTangentDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementMaterialDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementMaterialDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementTextureDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementTextureDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementPolygonGroupDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementPolygonGroupDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementUVDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementUVDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementVertexColorDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementVertexColorDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementSmoothingDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementSmoothingDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementCreaseDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementCreaseDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementHoleDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementHoleDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementUserDataDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementUserDataDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLayerElementVisibilityDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLayerElementVisibilityDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxAliasDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxAliasDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxPresetsDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxPresetsDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxStatisticsDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxStatisticsDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTextLineDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTextLineDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxUnitsDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxUnitsDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxWarningDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxWarningDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxWebDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxWebDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxActionDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxActionDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxCameraIndexDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxCameraIndexDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxCharPtrDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxCharPtrDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxConeAngleDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxConeAngleDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxEventDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxEventDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxFieldOfViewDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxFieldOfViewDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxFieldOfViewXDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxFieldOfViewXDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxFieldOfViewYDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxFieldOfViewYDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxFogDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxFogDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxHSBDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxHSBDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxIKReachTranslationDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxIKReachTranslationDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxIKReachRotationDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxIKReachRotationDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxIntensityDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxIntensityDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxLookAtDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxLookAtDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxOcclusionDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxOcclusionDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxOpticalCenterXDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxOpticalCenterXDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxOpticalCenterYDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxOpticalCenterYDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxOrientationDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxOrientationDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxRealDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxRealDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxRollDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxRollDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxScalingUVDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxScalingUVDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxShapeDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxShapeDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxStringListDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxStringListDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTextureRotationDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTextureRotationDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTimeCodeDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTimeCodeDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTimeWarpDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTimeWarpDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxTranslationUVDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxTranslationUVDT_get(), false); + return ret; + } + } + + public static FbxDataType FbxWeightDT { + get { + FbxDataType ret = new FbxDataType(NativeMethods.FbxWeightDT_get(), false); + return ret; + } + } + + internal static bool IsValidColor(FbxColor c) { + bool ret = NativeMethods.IsValidColor(c); + return ret; + } + + + public delegate bool FbxProgressCallback(float percentage, string status); + + public static readonly int FBXSDK_PROPERTY_ID_NULL = NativeMethods.FBXSDK_PROPERTY_ID_NULL_get(); + public static readonly int FBXSDK_PROPERTY_ID_ROOT = NativeMethods.FBXSDK_PROPERTY_ID_ROOT_get(); + public static readonly string IOSROOT = NativeMethods.IOSROOT_get(); + public static readonly string IMP_FBX_GLOBAL_SETTINGS = NativeMethods.IMP_FBX_GLOBAL_SETTINGS_get(); + public static readonly string IMP_FBX_MATERIAL = NativeMethods.IMP_FBX_MATERIAL_get(); + public static readonly string IMP_FBX_TEXTURE = NativeMethods.IMP_FBX_TEXTURE_get(); + public static readonly string IMP_FBX_ANIMATION = NativeMethods.IMP_FBX_ANIMATION_get(); + public static readonly string IMP_FBX_EXTRACT_EMBEDDED_DATA = NativeMethods.IMP_FBX_EXTRACT_EMBEDDED_DATA_get(); + public static readonly string EXP_FBX_GLOBAL_SETTINGS = NativeMethods.EXP_FBX_GLOBAL_SETTINGS_get(); + public static readonly string EXP_FBX_MATERIAL = NativeMethods.EXP_FBX_MATERIAL_get(); + public static readonly string EXP_FBX_TEXTURE = NativeMethods.EXP_FBX_TEXTURE_get(); + public static readonly string EXP_FBX_ANIMATION = NativeMethods.EXP_FBX_ANIMATION_get(); + public static readonly string EXP_FBX_EMBEDDED = NativeMethods.EXP_FBX_EMBEDDED_get(); + public static readonly string FBXSDK_SHADING_LANGUAGE_HLSL = NativeMethods.FBXSDK_SHADING_LANGUAGE_HLSL_get(); + public static readonly string FBXSDK_SHADING_LANGUAGE_GLSL = NativeMethods.FBXSDK_SHADING_LANGUAGE_GLSL_get(); + public static readonly string FBXSDK_SHADING_LANGUAGE_CGFX = NativeMethods.FBXSDK_SHADING_LANGUAGE_CGFX_get(); + public static readonly string FBXSDK_SHADING_LANGUAGE_SFX = NativeMethods.FBXSDK_SHADING_LANGUAGE_SFX_get(); + public static readonly string FBXSDK_SHADING_LANGUAGE_MRSL = NativeMethods.FBXSDK_SHADING_LANGUAGE_MRSL_get(); + public static readonly string FBXSDK_RENDERING_API_DIRECTX = NativeMethods.FBXSDK_RENDERING_API_DIRECTX_get(); + public static readonly string FBXSDK_RENDERING_API_OPENGL = NativeMethods.FBXSDK_RENDERING_API_OPENGL_get(); + public static readonly string FBXSDK_RENDERING_API_MENTALRAY = NativeMethods.FBXSDK_RENDERING_API_MENTALRAY_get(); + public static readonly string FBXSDK_RENDERING_API_PREVIEW = NativeMethods.FBXSDK_RENDERING_API_PREVIEW_get(); + public static readonly string FBXSDK_CURVENODE_TRANSFORM = NativeMethods.FBXSDK_CURVENODE_TRANSFORM_get(); + public static readonly string FBXSDK_CURVENODE_TRANSLATION = NativeMethods.FBXSDK_CURVENODE_TRANSLATION_get(); + public static readonly string FBXSDK_CURVENODE_ROTATION = NativeMethods.FBXSDK_CURVENODE_ROTATION_get(); + public static readonly string FBXSDK_CURVENODE_SCALING = NativeMethods.FBXSDK_CURVENODE_SCALING_get(); + public static readonly string FBXSDK_CURVENODE_COMPONENT_X = NativeMethods.FBXSDK_CURVENODE_COMPONENT_X_get(); + public static readonly string FBXSDK_CURVENODE_COMPONENT_Y = NativeMethods.FBXSDK_CURVENODE_COMPONENT_Y_get(); + public static readonly string FBXSDK_CURVENODE_COMPONENT_Z = NativeMethods.FBXSDK_CURVENODE_COMPONENT_Z_get(); + public static readonly string FBXSDK_CURVENODE_COLOR = NativeMethods.FBXSDK_CURVENODE_COLOR_get(); + public static readonly string FBXSDK_CURVENODE_COLOR_RED = NativeMethods.FBXSDK_CURVENODE_COLOR_RED_get(); + public static readonly string FBXSDK_CURVENODE_COLOR_GREEN = NativeMethods.FBXSDK_CURVENODE_COLOR_GREEN_get(); + public static readonly string FBXSDK_CURVENODE_COLOR_BLUE = NativeMethods.FBXSDK_CURVENODE_COLOR_BLUE_get(); + public static readonly string FBXSDK_CAMERA_PERSPECTIVE = NativeMethods.FBXSDK_CAMERA_PERSPECTIVE_get(); + public static readonly int FBX_NO_SECTION = NativeMethods.FBX_NO_SECTION_get(); + public static readonly int FBX_MAIN_SECTION = NativeMethods.FBX_MAIN_SECTION_get(); + public static readonly int FBX_EXTENSION_SECTION_0 = NativeMethods.FBX_EXTENSION_SECTION_0_get(); + +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/Globals.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/Globals.cs.meta new file mode 100644 index 0000000000..562764b106 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/Globals.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1f863b1bec57b4031b4cf3965993f1bd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/NativeMethods.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/NativeMethods.cs new file mode 100644 index 0000000000..e73174e162 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/NativeMethods.cs @@ -0,0 +1,4715 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +class NativeMethods { + + protected class SWIGExceptionHelper { + + public delegate void ExceptionDelegate(string message); + public delegate void ExceptionArgumentDelegate(string message, string paramName); + + static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); + static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); + static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); + static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); + static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); + static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); + static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); + static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); + static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); + static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); + static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); + + static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); + static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); + static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="SWIGRegisterExceptionCallbacks_Globals")] + public static extern void SWIGRegisterExceptionCallbacks_Globals( + ExceptionDelegate applicationDelegate, + ExceptionDelegate arithmeticDelegate, + ExceptionDelegate divideByZeroDelegate, + ExceptionDelegate indexOutOfRangeDelegate, + ExceptionDelegate invalidCastDelegate, + ExceptionDelegate invalidOperationDelegate, + ExceptionDelegate ioDelegate, + ExceptionDelegate nullReferenceDelegate, + ExceptionDelegate outOfMemoryDelegate, + ExceptionDelegate overflowDelegate, + ExceptionDelegate systemExceptionDelegate); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="SWIGRegisterExceptionArgumentCallbacks_Globals")] + public static extern void SWIGRegisterExceptionCallbacksArgument_Globals( + ExceptionArgumentDelegate argumentDelegate, + ExceptionArgumentDelegate argumentNullDelegate, + ExceptionArgumentDelegate argumentOutOfRangeDelegate); + + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingApplicationException(string message) { + SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingArithmeticException(string message) { + SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingDivideByZeroException(string message) { + SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingIndexOutOfRangeException(string message) { + SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingInvalidCastException(string message) { + SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingInvalidOperationException(string message) { + SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingIOException(string message) { + SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingNullReferenceException(string message) { + SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingOutOfMemoryException(string message) { + SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingOverflowException(string message) { + SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] + static void SetPendingSystemException(string message) { + SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve())); + } + + [AOT.MonoPInvokeCallback(typeof(ExceptionArgumentDelegate))] + static void SetPendingArgumentException(string message, string paramName) { + SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionArgumentDelegate))] + static void SetPendingArgumentNullException(string message, string paramName) { + global::System.Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message)); + } + [AOT.MonoPInvokeCallback(typeof(ExceptionArgumentDelegate))] + static void SetPendingArgumentOutOfRangeException(string message, string paramName) { + global::System.Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message)); + } + + static SWIGExceptionHelper() { + SWIGRegisterExceptionCallbacks_Globals( + applicationDelegate, + arithmeticDelegate, + divideByZeroDelegate, + indexOutOfRangeDelegate, + invalidCastDelegate, + invalidOperationDelegate, + ioDelegate, + nullReferenceDelegate, + outOfMemoryDelegate, + overflowDelegate, + systemDelegate); + + SWIGRegisterExceptionCallbacksArgument_Globals( + argumentDelegate, + argumentNullDelegate, + argumentOutOfRangeDelegate); + } + } + + protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); + + public class SWIGPendingException { + [global::System.ThreadStatic] + private static global::System.Exception pendingException = null; + private static int numExceptionsPending = 0; + + public static bool Pending { + get { + bool pending = false; + if (numExceptionsPending > 0) + if (pendingException != null) + pending = true; + return pending; + } + } + + public static void Set(global::System.Exception e) { + if (pendingException != null) + throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); + pendingException = e; + lock(typeof(NativeMethods)) { + numExceptionsPending++; + } + } + + public static global::System.Exception Retrieve() { + global::System.Exception e = null; + if (numExceptionsPending > 0) { + if (pendingException != null) { + e = pendingException; + pendingException = null; + lock(typeof(NativeMethods)) { + numExceptionsPending--; + } + } + } + return e; + } + } + + + protected class SWIGStringHelper { + + public delegate string SWIGStringDelegate(string message); + static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="SWIGRegisterStringCallback_Globals")] + public static extern void SWIGRegisterStringCallback_Globals(SWIGStringDelegate stringDelegate); + + [AOT.MonoPInvokeCallback(typeof(SWIGStringDelegate))] + static string CreateString(string cString) { + return cString; + } + + static SWIGStringHelper() { + SWIGRegisterStringCallback_Globals(stringDelegate); + } + } + + static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); + + + static NativeMethods() { + } + + + // Set up the FBX allocators at static init time. + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_Globals_InitFbxAllocators")] + private static extern int _InitFbxAllocators(); + + private static int InitFbxAllocators() + { + int result = -1; + bool verbose = UnityEngine.Debug.unityLogger.logEnabled; + result = _InitFbxAllocators(); + + if (result!=1 && verbose) + { + UnityEngine.Debug.LogError("Failed to configure FbxSdk memory allocators."); + } + + return result; + } + + protected static int initFbx = InitFbxAllocators(); /* protected to quiet a warning */ + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_Globals_Release_WeakPointerHandle")] + public static extern void ReleaseWeakPointerHandle(global::System.Runtime.InteropServices.HandleRef handle); + + + /// + /// String to use in the DllImport below. + /// + /// This must be a constant. + /// + const string DllImportName = "UnityFbxSdkNative"; + + + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDouble4x4__SWIG_0___")] + public static extern global::System.IntPtr new_FbxDouble4x4__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDouble4x4__SWIG_1___")] + public static extern global::System.IntPtr new_FbxDouble4x4__SWIG_1(FbxDouble4 jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDouble4x4__SWIG_2___")] + public static extern global::System.IntPtr new_FbxDouble4x4__SWIG_2(FbxDouble4 jarg1, FbxDouble4 jarg2, FbxDouble4 jarg3, FbxDouble4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxDouble4x4___")] + public static extern void delete_FbxDouble4x4(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDouble4x4__equals___")] + public static extern bool FbxDouble4x4__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDouble4x4__SWIG_3___")] + public static extern global::System.IntPtr new_FbxDouble4x4__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDouble4x4__get___")] + public static extern FbxDouble4 FbxDouble4x4__get(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDouble4x4__set___")] + public static extern void FbxDouble4x4__set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxDouble4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_PROPERTY_ID_NULL_get___")] + public static extern int FBXSDK_PROPERTY_ID_NULL_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_PROPERTY_ID_ROOT_get___")] + public static extern int FBXSDK_PROPERTY_ID_ROOT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxProperty_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4, bool jarg5, out bool jarg6); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxProperty_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4, bool jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Create__SWIG_2___")] + public static extern global::System.IntPtr FbxProperty_Create__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Create__SWIG_3___")] + public static extern global::System.IntPtr FbxProperty_Create__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Create__SWIG_4___")] + public static extern global::System.IntPtr FbxProperty_Create__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4, bool jarg5, out bool jarg6); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Create__SWIG_5___")] + public static extern global::System.IntPtr FbxProperty_Create__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4, bool jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Create__SWIG_6___")] + public static extern global::System.IntPtr FbxProperty_Create__SWIG_6(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Create__SWIG_7___")] + public static extern global::System.IntPtr FbxProperty_Create__SWIG_7(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Destroy___")] + public static extern void FbxProperty_Destroy(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_DestroyRecursively___")] + public static extern void FbxProperty_DestroyRecursively(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_DestroyChildren___")] + public static extern void FbxProperty_DestroyChildren(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetPropertyDataType___")] + public static extern global::System.IntPtr FbxProperty_GetPropertyDataType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetName___")] + public static extern string FbxProperty_GetName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetHierarchicalName___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxProperty_GetHierarchicalName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetLabel__SWIG_0___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxProperty_GetLabel__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetLabel__SWIG_1___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxProperty_GetLabel__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_SetLabel___")] + public static extern void FbxProperty_SetLabel(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetFbxObject___")] + public static extern global::System.IntPtr FbxProperty_GetFbxObject(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_ModifyFlag___")] + public static extern void FbxProperty_ModifyFlag(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetFlag___")] + public static extern bool FbxProperty_GetFlag(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetFlags___")] + public static extern int FbxProperty_GetFlags(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetFlagInheritType___")] + public static extern int FbxProperty_GetFlagInheritType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_SetFlagInheritType___")] + public static extern bool FbxProperty_SetFlagInheritType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_ModifiedFlag___")] + public static extern bool FbxProperty_ModifiedFlag(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty__equals___")] + public static extern bool FbxProperty__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_IsValid___")] + public static extern bool FbxProperty_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurveNode__SWIG_0___")] + public static extern global::System.IntPtr FbxProperty_GetCurveNode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurveNode__SWIG_1___")] + public static extern global::System.IntPtr FbxProperty_GetCurveNode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurveNode__SWIG_2___")] + public static extern global::System.IntPtr FbxProperty_GetCurveNode__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurveNode__SWIG_3___")] + public static extern global::System.IntPtr FbxProperty_GetCurveNode__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurveNode__SWIG_4___")] + public static extern global::System.IntPtr FbxProperty_GetCurveNode__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurveNode__SWIG_5___")] + public static extern global::System.IntPtr FbxProperty_GetCurveNode__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurve__SWIG_0___")] + public static extern global::System.IntPtr FbxProperty_GetCurve__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurve__SWIG_1___")] + public static extern global::System.IntPtr FbxProperty_GetCurve__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurve__SWIG_2___")] + public static extern global::System.IntPtr FbxProperty_GetCurve__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurve__SWIG_3___")] + public static extern global::System.IntPtr FbxProperty_GetCurve__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetCurve__SWIG_4___")] + public static extern global::System.IntPtr FbxProperty_GetCurve__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, string jarg4, bool jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_ConnectSrcObject__SWIG_0___")] + public static extern bool FbxProperty_ConnectSrcObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_ConnectSrcObject__SWIG_1___")] + public static extern bool FbxProperty_ConnectSrcObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_IsConnectedSrcObject___")] + public static extern bool FbxProperty_IsConnectedSrcObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_DisconnectSrcObject___")] + public static extern bool FbxProperty_DisconnectSrcObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_DisconnectAllSrcObject___")] + public static extern bool FbxProperty_DisconnectAllSrcObject(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetSrcObjectCount___")] + public static extern int FbxProperty_GetSrcObjectCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetSrcObject__SWIG_0___")] + public static extern global::System.IntPtr FbxProperty_GetSrcObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetSrcObject__SWIG_1___")] + public static extern global::System.IntPtr FbxProperty_GetSrcObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_FindSrcObjectInternal___")] + public static extern global::System.IntPtr FbxProperty_FindSrcObjectInternal(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_ConnectDstObject__SWIG_0___")] + public static extern bool FbxProperty_ConnectDstObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_ConnectDstObject__SWIG_1___")] + public static extern bool FbxProperty_ConnectDstObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_IsConnectedDstObject___")] + public static extern bool FbxProperty_IsConnectedDstObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_DisconnectDstObject___")] + public static extern bool FbxProperty_DisconnectDstObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_DisconnectAllDstObject___")] + public static extern bool FbxProperty_DisconnectAllDstObject(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetDstObjectCount___")] + public static extern int FbxProperty_GetDstObjectCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetDstObject__SWIG_0___")] + public static extern global::System.IntPtr FbxProperty_GetDstObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetDstObject__SWIG_1___")] + public static extern global::System.IntPtr FbxProperty_GetDstObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_FindDstObjectInternal___")] + public static extern global::System.IntPtr FbxProperty_FindDstObjectInternal(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetFloat___")] + public static extern float FbxProperty_GetFloat(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetBool___")] + public static extern bool FbxProperty_GetBool(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetDouble___")] + public static extern double FbxProperty_GetDouble(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetFbxDouble3___")] + public static extern FbxDouble3 FbxProperty_GetFbxDouble3(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetString___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxProperty_GetString(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetFbxColor___")] + public static extern FbxColor FbxProperty_GetFbxColor(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_GetInt___")] + public static extern int FbxProperty_GetInt(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Set__SWIG_1___")] + public static extern bool FbxProperty_Set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, FbxColor jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Set__SWIG_2___")] + public static extern bool FbxProperty_Set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_Set__SWIG_3___")] + public static extern bool FbxProperty_Set__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_SetFloat___")] + public static extern void FbxProperty_SetFloat(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_SetString___")] + public static extern void FbxProperty_SetString(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_SetDouble___")] + public static extern void FbxProperty_SetDouble(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_SetBool___")] + public static extern void FbxProperty_SetBool(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_SetColor___")] + public static extern void FbxProperty_SetColor(global::System.Runtime.InteropServices.HandleRef jarg1, FbxColor jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxProperty_SetInt___")] + public static extern void FbxProperty_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyBool_Set___")] + public static extern global::System.IntPtr FbxPropertyBool_Set(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyBool_Get___")] + public static extern bool FbxPropertyBool_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyBool_EvaluateValue__SWIG_0___")] + public static extern bool FbxPropertyBool_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyBool_EvaluateValue__SWIG_1___")] + public static extern bool FbxPropertyBool_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyBool_EvaluateValue__SWIG_2___")] + public static extern bool FbxPropertyBool_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble_Set___")] + public static extern global::System.IntPtr FbxPropertyDouble_Set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble_Get___")] + public static extern double FbxPropertyDouble_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble_EvaluateValue__SWIG_0___")] + public static extern double FbxPropertyDouble_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble_EvaluateValue__SWIG_1___")] + public static extern double FbxPropertyDouble_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble_EvaluateValue__SWIG_2___")] + public static extern double FbxPropertyDouble_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble3_Set___")] + public static extern global::System.IntPtr FbxPropertyDouble3_Set(global::System.Runtime.InteropServices.HandleRef jarg1, FbxDouble3 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble3_Get___")] + public static extern FbxDouble3 FbxPropertyDouble3_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble3_EvaluateValue__SWIG_0___")] + public static extern FbxDouble3 FbxPropertyDouble3_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble3_EvaluateValue__SWIG_1___")] + public static extern FbxDouble3 FbxPropertyDouble3_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble3_EvaluateValue__SWIG_2___")] + public static extern FbxDouble3 FbxPropertyDouble3_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble3_GetSrcObject_FileTexture___")] + public static extern global::System.IntPtr FbxPropertyDouble3_GetSrcObject_FileTexture(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyInt_Set___")] + public static extern global::System.IntPtr FbxPropertyInt_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyInt_Get___")] + public static extern int FbxPropertyInt_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyInt_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyInt_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyInt_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyInt_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyInt_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyInt_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyString_Set___")] + public static extern global::System.IntPtr FbxPropertyString_Set(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyString_Get___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxPropertyString_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyString_EvaluateValue__SWIG_0___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxPropertyString_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyString_EvaluateValue__SWIG_1___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxPropertyString_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyString_EvaluateValue__SWIG_2___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxPropertyString_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyFloat_Set___")] + public static extern global::System.IntPtr FbxPropertyFloat_Set(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyFloat_Get___")] + public static extern float FbxPropertyFloat_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyFloat_EvaluateValue__SWIG_0___")] + public static extern float FbxPropertyFloat_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyFloat_EvaluateValue__SWIG_1___")] + public static extern float FbxPropertyFloat_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyFloat_EvaluateValue__SWIG_2___")] + public static extern float FbxPropertyFloat_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEProjectionType_Set___")] + public static extern global::System.IntPtr FbxPropertyEProjectionType_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEProjectionType_Get___")] + public static extern int FbxPropertyEProjectionType_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEProjectionType_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyEProjectionType_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEProjectionType_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyEProjectionType_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEProjectionType_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyEProjectionType_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyELightType_Set___")] + public static extern global::System.IntPtr FbxPropertyELightType_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyELightType_Get___")] + public static extern int FbxPropertyELightType_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyELightType_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyELightType_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyELightType_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyELightType_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyELightType_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyELightType_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEAreaLightShape_Set___")] + public static extern global::System.IntPtr FbxPropertyEAreaLightShape_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEAreaLightShape_Get___")] + public static extern int FbxPropertyEAreaLightShape_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEAreaLightShape_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyEAreaLightShape_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEAreaLightShape_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyEAreaLightShape_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEAreaLightShape_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyEAreaLightShape_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEDecayType_Set___")] + public static extern global::System.IntPtr FbxPropertyEDecayType_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEDecayType_Get___")] + public static extern int FbxPropertyEDecayType_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEDecayType_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyEDecayType_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEDecayType_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyEDecayType_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEDecayType_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyEDecayType_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyMarkerELook_Set___")] + public static extern global::System.IntPtr FbxPropertyMarkerELook_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyMarkerELook_Get___")] + public static extern int FbxPropertyMarkerELook_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyMarkerELook_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyMarkerELook_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyMarkerELook_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyMarkerELook_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyMarkerELook_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyMarkerELook_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyNullELook_Set___")] + public static extern global::System.IntPtr FbxPropertyNullELook_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyNullELook_Get___")] + public static extern int FbxPropertyNullELook_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyNullELook_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyNullELook_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyNullELook_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyNullELook_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyNullELook_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyNullELook_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEInheritType_Set___")] + public static extern global::System.IntPtr FbxPropertyEInheritType_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEInheritType_Get___")] + public static extern int FbxPropertyEInheritType_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEInheritType_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyEInheritType_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEInheritType_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyEInheritType_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEInheritType_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyEInheritType_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEBlendMode_Set___")] + public static extern global::System.IntPtr FbxPropertyEBlendMode_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEBlendMode_Get___")] + public static extern int FbxPropertyEBlendMode_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEBlendMode_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyEBlendMode_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEBlendMode_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyEBlendMode_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEBlendMode_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyEBlendMode_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEWrapMode_Set___")] + public static extern global::System.IntPtr FbxPropertyEWrapMode_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEWrapMode_Get___")] + public static extern int FbxPropertyEWrapMode_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEWrapMode_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyEWrapMode_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEWrapMode_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyEWrapMode_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEWrapMode_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyEWrapMode_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEGateFit_Set___")] + public static extern global::System.IntPtr FbxPropertyEGateFit_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEGateFit_Get___")] + public static extern int FbxPropertyEGateFit_Get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEGateFit_EvaluateValue__SWIG_0___")] + public static extern int FbxPropertyEGateFit_EvaluateValue__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEGateFit_EvaluateValue__SWIG_1___")] + public static extern int FbxPropertyEGateFit_EvaluateValue__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEGateFit_EvaluateValue__SWIG_2___")] + public static extern int FbxPropertyEGateFit_EvaluateValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElement_SetMappingMode___")] + public static extern void FbxLayerElement_SetMappingMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElement_SetReferenceMode___")] + public static extern void FbxLayerElement_SetReferenceMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElement_GetMappingMode___")] + public static extern int FbxLayerElement_GetMappingMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElement_GetReferenceMode___")] + public static extern int FbxLayerElement_GetReferenceMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxLayerElementArray___")] + public static extern global::System.IntPtr new_FbxLayerElementArray(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxLayerElementArray___")] + public static extern void delete_FbxLayerElementArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_GetCount___")] + public static extern int FbxLayerElementArray_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_SetCount___")] + public static extern void FbxLayerElementArray_SetCount(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_Add__SWIG_1___")] + public static extern int FbxLayerElementArray_Add__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_Add__SWIG_2___")] + public static extern int FbxLayerElementArray_Add__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, FbxColor jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_Add__SWIG_3___")] + public static extern int FbxLayerElementArray_Add__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector2 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_Add__SWIG_4___")] + public static extern int FbxLayerElementArray_Add__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_SetAt__SWIG_1___")] + public static extern void FbxLayerElementArray_SetAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_SetAt__SWIG_2___")] + public static extern void FbxLayerElementArray_SetAt__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxColor jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_SetAt__SWIG_3___")] + public static extern void FbxLayerElementArray_SetAt__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector2 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArray_SetAt__SWIG_4___")] + public static extern void FbxLayerElementArray_SetAt__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxVector4_GetDirectArray___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxVector4_GetDirectArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxVector4_GetIndexArray___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxVector4_GetIndexArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxVector2_GetDirectArray___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxVector2_GetDirectArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxVector2_GetIndexArray___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxVector2_GetIndexArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxColor_GetDirectArray___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxColor_GetDirectArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxColor_GetIndexArray___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxColor_GetIndexArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxSurfaceMaterial_GetDirectArray___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxSurfaceMaterial_GetDirectArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxSurfaceMaterial_GetIndexArray___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxSurfaceMaterial_GetIndexArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateFbxSurfaceMaterial_GetAtUnchecked___")] + public static extern global::System.IntPtr FbxLayerElementArrayTemplateFbxSurfaceMaterial_GetAtUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxLayerElementArrayTemplateFbxSurfaceMaterial___")] + public static extern global::System.IntPtr new_FbxLayerElementArrayTemplateFbxSurfaceMaterial(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxLayerElementArrayTemplateFbxSurfaceMaterial___")] + public static extern void delete_FbxLayerElementArrayTemplateFbxSurfaceMaterial(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementNormal_Create___")] + public static extern global::System.IntPtr FbxLayerElementNormal_Create(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementBinormal_Create___")] + public static extern global::System.IntPtr FbxLayerElementBinormal_Create(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTangent_Create___")] + public static extern global::System.IntPtr FbxLayerElementTangent_Create(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementMaterial_Create___")] + public static extern global::System.IntPtr FbxLayerElementMaterial_Create(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementUV_Create___")] + public static extern global::System.IntPtr FbxLayerElementUV_Create(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementVertexColor_Create___")] + public static extern global::System.IntPtr FbxLayerElementVertexColor_Create(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_GetNormals___")] + public static extern global::System.IntPtr FbxLayer_GetNormals(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_GetTangents___")] + public static extern global::System.IntPtr FbxLayer_GetTangents(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_GetBinormals___")] + public static extern global::System.IntPtr FbxLayer_GetBinormals(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_GetMaterials___")] + public static extern global::System.IntPtr FbxLayer_GetMaterials(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_GetUVs__SWIG_0___")] + public static extern global::System.IntPtr FbxLayer_GetUVs__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_GetUVs__SWIG_1___")] + public static extern global::System.IntPtr FbxLayer_GetUVs__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_GetVertexColors___")] + public static extern global::System.IntPtr FbxLayer_GetVertexColors(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_SetNormals___")] + public static extern void FbxLayer_SetNormals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_SetBinormals___")] + public static extern void FbxLayer_SetBinormals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_SetTangents___")] + public static extern void FbxLayer_SetTangents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_SetMaterials___")] + public static extern void FbxLayer_SetMaterials(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_SetUVs__SWIG_0___")] + public static extern void FbxLayer_SetUVs__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_SetUVs__SWIG_1___")] + public static extern void FbxLayer_SetUVs__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayer_SetVertexColors___")] + public static extern void FbxLayer_SetVertexColors(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateFbxColor_GetAtUnchecked___")] + public static extern FbxColor FbxLayerElementArrayTemplateFbxColor_GetAtUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxLayerElementArrayTemplateFbxColor___")] + public static extern global::System.IntPtr new_FbxLayerElementArrayTemplateFbxColor(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxLayerElementArrayTemplateFbxColor___")] + public static extern void delete_FbxLayerElementArrayTemplateFbxColor(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateFbxVector2_GetAtUnchecked___")] + public static extern FbxVector2 FbxLayerElementArrayTemplateFbxVector2_GetAtUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxLayerElementArrayTemplateFbxVector2___")] + public static extern global::System.IntPtr new_FbxLayerElementArrayTemplateFbxVector2(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxLayerElementArrayTemplateFbxVector2___")] + public static extern void delete_FbxLayerElementArrayTemplateFbxVector2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateFbxVector4_GetAtUnchecked___")] + public static extern FbxVector4 FbxLayerElementArrayTemplateFbxVector4_GetAtUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxLayerElementArrayTemplateFbxVector4___")] + public static extern global::System.IntPtr new_FbxLayerElementArrayTemplateFbxVector4(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxLayerElementArrayTemplateFbxVector4___")] + public static extern void delete_FbxLayerElementArrayTemplateFbxVector4(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateInt_GetAtUnchecked___")] + public static extern int FbxLayerElementArrayTemplateInt_GetAtUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxLayerElementArrayTemplateInt___")] + public static extern global::System.IntPtr new_FbxLayerElementArrayTemplateInt(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxLayerElementArrayTemplateInt___")] + public static extern void delete_FbxLayerElementArrayTemplateInt(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_SetControlPoints___")] + public static extern void SetControlPoints(global::System.Runtime.InteropServices.HandleRef jarg1, System.IntPtr jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_GetControlPoints___")] + public static extern void GetControlPoints(global::System.Runtime.InteropServices.HandleRef jarg1, System.IntPtr jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_CopyVector3ToFbxVector4___")] + public static extern void CopyVector3ToFbxVector4(global::System.Runtime.InteropServices.HandleRef jarg1, System.IntPtr jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_CopyColorToFbxColor___")] + public static extern void CopyColorToFbxColor(global::System.Runtime.InteropServices.HandleRef jarg1, System.IntPtr jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_CopyVector4ToFbxVector4___")] + public static extern void CopyVector4ToFbxVector4(global::System.Runtime.InteropServices.HandleRef jarg1, System.IntPtr jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_CopyVector2ToFbxVector2___")] + public static extern void CopyVector2ToFbxVector2(global::System.Runtime.InteropServices.HandleRef jarg1, System.IntPtr jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_CopyFbxVector2ToVector2___")] + public static extern void CopyFbxVector2ToVector2(global::System.Runtime.InteropServices.HandleRef jarg1, System.IntPtr jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_CopyFbxVector4ToVector3___")] + public static extern void CopyFbxVector4ToVector3(global::System.Runtime.InteropServices.HandleRef jarg1, System.IntPtr jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxMatrix__SWIG_0___")] + public static extern global::System.IntPtr new_FbxMatrix__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxMatrix__SWIG_1___")] + public static extern global::System.IntPtr new_FbxMatrix__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxMatrix__SWIG_2___")] + public static extern global::System.IntPtr new_FbxMatrix__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxMatrix__SWIG_3___")] + public static extern global::System.IntPtr new_FbxMatrix__SWIG_3(FbxVector4 jarg1, FbxVector4 jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxMatrix__SWIG_4___")] + public static extern global::System.IntPtr new_FbxMatrix__SWIG_4(FbxVector4 jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxMatrix__SWIG_5___")] + public static extern global::System.IntPtr new_FbxMatrix__SWIG_5(double jarg1, double jarg2, double jarg3, double jarg4, double jarg5, double jarg6, double jarg7, double jarg8, double jarg9, double jarg10, double jarg11, double jarg12, double jarg13, double jarg14, double jarg15, double jarg16); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxMatrix___")] + public static extern void delete_FbxMatrix(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_Get___")] + public static extern double FbxMatrix_Get(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_GetRow___")] + public static extern FbxVector4 FbxMatrix_GetRow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_GetColumn___")] + public static extern FbxVector4 FbxMatrix_GetColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_Set___")] + public static extern void FbxMatrix_Set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, double jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetTRS___")] + public static extern void FbxMatrix_SetTRS(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, FbxVector4 jarg3, FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetTQS___")] + public static extern void FbxMatrix_SetTQS(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetRow___")] + public static extern void FbxMatrix_SetRow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetColumn___")] + public static extern void FbxMatrix_SetColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_GetElements__SWIG_0___")] + public static extern void FbxMatrix_GetElements__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, out FbxVector4 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out FbxVector4 jarg4, out FbxVector4 jarg5, out double jarg6); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_GetElements__SWIG_1___")] + public static extern void FbxMatrix_GetElements__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, out FbxVector4 jarg2, out FbxVector4 jarg3, out FbxVector4 jarg4, out FbxVector4 jarg5, out double jarg6); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_operator_Negate___")] + public static extern global::System.IntPtr FbxMatrix_operator_Negate(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_operator_Add___")] + public static extern global::System.IntPtr FbxMatrix_operator_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_operator_Sub___")] + public static extern global::System.IntPtr FbxMatrix_operator_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_operator_Mul___")] + public static extern global::System.IntPtr FbxMatrix_operator_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix__equals___")] + public static extern bool FbxMatrix__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_Inverse___")] + public static extern global::System.IntPtr FbxMatrix_Inverse(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_Transpose___")] + public static extern global::System.IntPtr FbxMatrix_Transpose(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetIdentity___")] + public static extern void FbxMatrix_SetIdentity(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetLookToLH___")] + public static extern void FbxMatrix_SetLookToLH(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, FbxVector4 jarg3, FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetLookToRH___")] + public static extern void FbxMatrix_SetLookToRH(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, FbxVector4 jarg3, FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetLookAtLH___")] + public static extern void FbxMatrix_SetLookAtLH(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, FbxVector4 jarg3, FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SetLookAtRH___")] + public static extern void FbxMatrix_SetLookAtRH(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, FbxVector4 jarg3, FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_MultNormalize___")] + public static extern FbxVector4 FbxMatrix_MultNormalize(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_GetHashCode___")] + public static extern int FbxMatrix_GetHashCode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxAMatrix__SWIG_0___")] + public static extern global::System.IntPtr new_FbxAMatrix__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxAMatrix__SWIG_1___")] + public static extern global::System.IntPtr new_FbxAMatrix__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxAMatrix__SWIG_2___")] + public static extern global::System.IntPtr new_FbxAMatrix__SWIG_2(FbxVector4 jarg1, FbxVector4 jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxAMatrix___")] + public static extern void delete_FbxAMatrix(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_Get___")] + public static extern double FbxAMatrix_Get(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_GetT___")] + public static extern FbxVector4 FbxAMatrix_GetT(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_GetR___")] + public static extern FbxVector4 FbxAMatrix_GetR(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_GetQ___")] + public static extern global::System.IntPtr FbxAMatrix_GetQ(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_GetS___")] + public static extern FbxVector4 FbxAMatrix_GetS(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_GetRow___")] + public static extern FbxVector4 FbxAMatrix_GetRow(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_GetColumn___")] + public static extern FbxVector4 FbxAMatrix_GetColumn(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_SetIdentity___")] + public static extern void FbxAMatrix_SetIdentity(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_SetT___")] + public static extern void FbxAMatrix_SetT(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_SetR___")] + public static extern void FbxAMatrix_SetR(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_SetQ___")] + public static extern void FbxAMatrix_SetQ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_SetS___")] + public static extern void FbxAMatrix_SetS(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_SetTRS___")] + public static extern void FbxAMatrix_SetTRS(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, FbxVector4 jarg3, FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_SetTQS___")] + public static extern void FbxAMatrix_SetTQS(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_operator_Scale___")] + public static extern global::System.IntPtr FbxAMatrix_operator_Scale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_operator_InvScale___")] + public static extern global::System.IntPtr FbxAMatrix_operator_InvScale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_MultT___")] + public static extern FbxVector4 FbxAMatrix_MultT(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_MultR___")] + public static extern FbxVector4 FbxAMatrix_MultR(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_MultQ___")] + public static extern global::System.IntPtr FbxAMatrix_MultQ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_MultS___")] + public static extern FbxVector4 FbxAMatrix_MultS(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_operator_Negate___")] + public static extern global::System.IntPtr FbxAMatrix_operator_Negate(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_operator_Mul___")] + public static extern global::System.IntPtr FbxAMatrix_operator_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_Inverse___")] + public static extern global::System.IntPtr FbxAMatrix_Inverse(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_Transpose___")] + public static extern global::System.IntPtr FbxAMatrix_Transpose(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_Slerp___")] + public static extern global::System.IntPtr FbxAMatrix_Slerp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix__equals___")] + public static extern bool FbxAMatrix__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_IsIdentity__SWIG_0___")] + public static extern bool FbxAMatrix_IsIdentity__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_IsIdentity__SWIG_1___")] + public static extern bool FbxAMatrix_IsIdentity__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_GetHashCode___")] + public static extern int FbxAMatrix_GetHashCode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxManager_Create___")] + public static extern global::System.IntPtr FbxManager_Create(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxManager_Destroy___")] + public static extern void FbxManager_Destroy(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxManager_GetVersion__SWIG_0___")] + public static extern string FbxManager_GetVersion__SWIG_0(bool jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxManager_GetVersion__SWIG_1___")] + public static extern string FbxManager_GetVersion__SWIG_1(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxManager_GetFileFormatVersion___")] + public static extern void FbxManager_GetFileFormatVersion(out int jarg1, out int jarg2, out int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxManager_GetIOSettings___")] + public static extern global::System.IntPtr FbxManager_GetIOSettings(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxManager_SetIOSettings___")] + public static extern void FbxManager_SetIOSettings(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxManager_GetIOPluginRegistry___")] + public static extern global::System.IntPtr FbxManager_GetIOPluginRegistry(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxAxisSystem__SWIG_0___")] + public static extern global::System.IntPtr new_FbxAxisSystem__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxAxisSystem__SWIG_1___")] + public static extern global::System.IntPtr new_FbxAxisSystem__SWIG_1(int jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxAxisSystem__SWIG_2___")] + public static extern global::System.IntPtr new_FbxAxisSystem__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxAxisSystem__SWIG_3___")] + public static extern global::System.IntPtr new_FbxAxisSystem__SWIG_3(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxAxisSystem___")] + public static extern void delete_FbxAxisSystem(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem__equals___")] + public static extern bool FbxAxisSystem__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_MayaZUp_get___")] + public static extern global::System.IntPtr FbxAxisSystem_MayaZUp_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_MayaYUp_get___")] + public static extern global::System.IntPtr FbxAxisSystem_MayaYUp_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_Max_get___")] + public static extern global::System.IntPtr FbxAxisSystem_Max_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_Motionbuilder_get___")] + public static extern global::System.IntPtr FbxAxisSystem_Motionbuilder_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_OpenGL_get___")] + public static extern global::System.IntPtr FbxAxisSystem_OpenGL_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_DirectX_get___")] + public static extern global::System.IntPtr FbxAxisSystem_DirectX_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_Lightwave_get___")] + public static extern global::System.IntPtr FbxAxisSystem_Lightwave_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_DeepConvertScene___")] + public static extern void FbxAxisSystem_DeepConvertScene(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_ConvertScene___")] + public static extern void FbxAxisSystem_ConvertScene(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_GetCoorSystem___")] + public static extern int FbxAxisSystem_GetCoorSystem(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_GetUpVector___")] + public static extern int FbxAxisSystem_GetUpVector(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_GetFrontVector___")] + public static extern int FbxAxisSystem_GetFrontVector(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAxisSystem_GetHashCode___")] + public static extern int FbxAxisSystem_GetHashCode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxSystemUnit_ConversionOptions___")] + public static extern global::System.IntPtr new_FbxSystemUnit_ConversionOptions(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxSystemUnit_ConversionOptions___")] + public static extern void delete_FbxSystemUnit_ConversionOptions(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxSystemUnit__SWIG_0___")] + public static extern global::System.IntPtr new_FbxSystemUnit__SWIG_0(double jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxSystemUnit__SWIG_1___")] + public static extern global::System.IntPtr new_FbxSystemUnit__SWIG_1(double jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxSystemUnit___")] + public static extern void delete_FbxSystemUnit(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_mm_get___")] + public static extern global::System.IntPtr FbxSystemUnit_mm_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_dm_get___")] + public static extern global::System.IntPtr FbxSystemUnit_dm_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_cm_get___")] + public static extern global::System.IntPtr FbxSystemUnit_cm_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_m_get___")] + public static extern global::System.IntPtr FbxSystemUnit_m_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_km_get___")] + public static extern global::System.IntPtr FbxSystemUnit_km_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_Inch_get___")] + public static extern global::System.IntPtr FbxSystemUnit_Inch_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_Foot_get___")] + public static extern global::System.IntPtr FbxSystemUnit_Foot_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_Yard_get___")] + public static extern global::System.IntPtr FbxSystemUnit_Yard_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_ConvertScene__SWIG_0___")] + public static extern void FbxSystemUnit_ConvertScene__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_ConvertScene__SWIG_1___")] + public static extern void FbxSystemUnit_ConvertScene__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_GetScaleFactor___")] + public static extern double FbxSystemUnit_GetScaleFactor(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_GetScaleFactorAsString__SWIG_0___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxSystemUnit_GetScaleFactorAsString__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_GetScaleFactorAsString__SWIG_1___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxSystemUnit_GetScaleFactorAsString__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_GetMultiplier___")] + public static extern double FbxSystemUnit_GetMultiplier(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit__equals___")] + public static extern bool FbxSystemUnit__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_GetConversionFactorTo___")] + public static extern double FbxSystemUnit_GetConversionFactorTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_GetConversionFactorFrom___")] + public static extern double FbxSystemUnit_GetConversionFactorFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSystemUnit_GetHashCode___")] + public static extern int FbxSystemUnit_GetHashCode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDataType__SWIG_0___")] + public static extern global::System.IntPtr new_FbxDataType__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDataType__SWIG_1___")] + public static extern global::System.IntPtr new_FbxDataType__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxDataType___")] + public static extern void delete_FbxDataType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDataType__equals___")] + public static extern bool FbxDataType__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDataType_Valid___")] + public static extern bool FbxDataType_Valid(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDataType_Is___")] + public static extern bool FbxDataType_Is(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDataType_ToEnum___")] + public static extern int FbxDataType_ToEnum(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDataType_GetName___")] + public static extern string FbxDataType_GetName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDataType__SWIG_2___")] + public static extern global::System.IntPtr new_FbxDataType__SWIG_2(string jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDataType__SWIG_3___")] + public static extern global::System.IntPtr new_FbxDataType__SWIG_3(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxDataType__SWIG_4___")] + public static extern global::System.IntPtr new_FbxDataType__SWIG_4(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDataType_GetNameForIO___")] + public static extern string FbxDataType_GetNameForIO(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxUndefinedDT_get___")] + public static extern global::System.IntPtr FbxUndefinedDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBoolDT_get___")] + public static extern global::System.IntPtr FbxBoolDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCharDT_get___")] + public static extern global::System.IntPtr FbxCharDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxUCharDT_get___")] + public static extern global::System.IntPtr FbxUCharDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxShortDT_get___")] + public static extern global::System.IntPtr FbxShortDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxUShortDT_get___")] + public static extern global::System.IntPtr FbxUShortDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIntDT_get___")] + public static extern global::System.IntPtr FbxIntDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxUIntDT_get___")] + public static extern global::System.IntPtr FbxUIntDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLongLongDT_get___")] + public static extern global::System.IntPtr FbxLongLongDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxULongLongDT_get___")] + public static extern global::System.IntPtr FbxULongLongDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFloatDT_get___")] + public static extern global::System.IntPtr FbxFloatDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxHalfFloatDT_get___")] + public static extern global::System.IntPtr FbxHalfFloatDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDoubleDT_get___")] + public static extern global::System.IntPtr FbxDoubleDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDouble2DT_get___")] + public static extern global::System.IntPtr FbxDouble2DT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDouble3DT_get___")] + public static extern global::System.IntPtr FbxDouble3DT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDouble4DT_get___")] + public static extern global::System.IntPtr FbxDouble4DT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDouble4x4DT_get___")] + public static extern global::System.IntPtr FbxDouble4x4DT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxEnumDT_get___")] + public static extern global::System.IntPtr FbxEnumDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStringDT_get___")] + public static extern global::System.IntPtr FbxStringDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeDT_get___")] + public static extern global::System.IntPtr FbxTimeDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxReferenceDT_get___")] + public static extern global::System.IntPtr FbxReferenceDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlobDT_get___")] + public static extern global::System.IntPtr FbxBlobDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDistanceDT_get___")] + public static extern global::System.IntPtr FbxDistanceDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDateTimeDT_get___")] + public static extern global::System.IntPtr FbxDateTimeDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxColor3DT_get___")] + public static extern global::System.IntPtr FbxColor3DT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxColor4DT_get___")] + public static extern global::System.IntPtr FbxColor4DT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCompoundDT_get___")] + public static extern global::System.IntPtr FbxCompoundDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxReferenceObjectDT_get___")] + public static extern global::System.IntPtr FbxReferenceObjectDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxReferencePropertyDT_get___")] + public static extern global::System.IntPtr FbxReferencePropertyDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxVisibilityDT_get___")] + public static extern global::System.IntPtr FbxVisibilityDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxVisibilityInheritanceDT_get___")] + public static extern global::System.IntPtr FbxVisibilityInheritanceDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxUrlDT_get___")] + public static extern global::System.IntPtr FbxUrlDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxXRefUrlDT_get___")] + public static extern global::System.IntPtr FbxXRefUrlDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTranslationDT_get___")] + public static extern global::System.IntPtr FbxTranslationDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxRotationDT_get___")] + public static extern global::System.IntPtr FbxRotationDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScalingDT_get___")] + public static extern global::System.IntPtr FbxScalingDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternionDT_get___")] + public static extern global::System.IntPtr FbxQuaternionDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLocalTranslationDT_get___")] + public static extern global::System.IntPtr FbxLocalTranslationDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLocalRotationDT_get___")] + public static extern global::System.IntPtr FbxLocalRotationDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLocalScalingDT_get___")] + public static extern global::System.IntPtr FbxLocalScalingDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLocalQuaternionDT_get___")] + public static extern global::System.IntPtr FbxLocalQuaternionDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTransformMatrixDT_get___")] + public static extern global::System.IntPtr FbxTransformMatrixDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTranslationMatrixDT_get___")] + public static extern global::System.IntPtr FbxTranslationMatrixDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxRotationMatrixDT_get___")] + public static extern global::System.IntPtr FbxRotationMatrixDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScalingMatrixDT_get___")] + public static extern global::System.IntPtr FbxScalingMatrixDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialEmissiveDT_get___")] + public static extern global::System.IntPtr FbxMaterialEmissiveDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialEmissiveFactorDT_get___")] + public static extern global::System.IntPtr FbxMaterialEmissiveFactorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialAmbientDT_get___")] + public static extern global::System.IntPtr FbxMaterialAmbientDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialAmbientFactorDT_get___")] + public static extern global::System.IntPtr FbxMaterialAmbientFactorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialDiffuseDT_get___")] + public static extern global::System.IntPtr FbxMaterialDiffuseDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialDiffuseFactorDT_get___")] + public static extern global::System.IntPtr FbxMaterialDiffuseFactorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialBumpDT_get___")] + public static extern global::System.IntPtr FbxMaterialBumpDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialNormalMapDT_get___")] + public static extern global::System.IntPtr FbxMaterialNormalMapDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialTransparentColorDT_get___")] + public static extern global::System.IntPtr FbxMaterialTransparentColorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialTransparencyFactorDT_get___")] + public static extern global::System.IntPtr FbxMaterialTransparencyFactorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialSpecularDT_get___")] + public static extern global::System.IntPtr FbxMaterialSpecularDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialSpecularFactorDT_get___")] + public static extern global::System.IntPtr FbxMaterialSpecularFactorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialShininessDT_get___")] + public static extern global::System.IntPtr FbxMaterialShininessDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialReflectionDT_get___")] + public static extern global::System.IntPtr FbxMaterialReflectionDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialReflectionFactorDT_get___")] + public static extern global::System.IntPtr FbxMaterialReflectionFactorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialDisplacementDT_get___")] + public static extern global::System.IntPtr FbxMaterialDisplacementDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialVectorDisplacementDT_get___")] + public static extern global::System.IntPtr FbxMaterialVectorDisplacementDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialCommonFactorDT_get___")] + public static extern global::System.IntPtr FbxMaterialCommonFactorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMaterialCommonTextureDT_get___")] + public static extern global::System.IntPtr FbxMaterialCommonTextureDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementUndefinedDT_get___")] + public static extern global::System.IntPtr FbxLayerElementUndefinedDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementNormalDT_get___")] + public static extern global::System.IntPtr FbxLayerElementNormalDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementBinormalDT_get___")] + public static extern global::System.IntPtr FbxLayerElementBinormalDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTangentDT_get___")] + public static extern global::System.IntPtr FbxLayerElementTangentDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementMaterialDT_get___")] + public static extern global::System.IntPtr FbxLayerElementMaterialDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTextureDT_get___")] + public static extern global::System.IntPtr FbxLayerElementTextureDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementPolygonGroupDT_get___")] + public static extern global::System.IntPtr FbxLayerElementPolygonGroupDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementUVDT_get___")] + public static extern global::System.IntPtr FbxLayerElementUVDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementVertexColorDT_get___")] + public static extern global::System.IntPtr FbxLayerElementVertexColorDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementSmoothingDT_get___")] + public static extern global::System.IntPtr FbxLayerElementSmoothingDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementCreaseDT_get___")] + public static extern global::System.IntPtr FbxLayerElementCreaseDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementHoleDT_get___")] + public static extern global::System.IntPtr FbxLayerElementHoleDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementUserDataDT_get___")] + public static extern global::System.IntPtr FbxLayerElementUserDataDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementVisibilityDT_get___")] + public static extern global::System.IntPtr FbxLayerElementVisibilityDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAliasDT_get___")] + public static extern global::System.IntPtr FbxAliasDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPresetsDT_get___")] + public static extern global::System.IntPtr FbxPresetsDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStatisticsDT_get___")] + public static extern global::System.IntPtr FbxStatisticsDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTextLineDT_get___")] + public static extern global::System.IntPtr FbxTextLineDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxUnitsDT_get___")] + public static extern global::System.IntPtr FbxUnitsDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxWarningDT_get___")] + public static extern global::System.IntPtr FbxWarningDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxWebDT_get___")] + public static extern global::System.IntPtr FbxWebDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxActionDT_get___")] + public static extern global::System.IntPtr FbxActionDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCameraIndexDT_get___")] + public static extern global::System.IntPtr FbxCameraIndexDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCharPtrDT_get___")] + public static extern global::System.IntPtr FbxCharPtrDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConeAngleDT_get___")] + public static extern global::System.IntPtr FbxConeAngleDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxEventDT_get___")] + public static extern global::System.IntPtr FbxEventDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFieldOfViewDT_get___")] + public static extern global::System.IntPtr FbxFieldOfViewDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFieldOfViewXDT_get___")] + public static extern global::System.IntPtr FbxFieldOfViewXDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFieldOfViewYDT_get___")] + public static extern global::System.IntPtr FbxFieldOfViewYDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFogDT_get___")] + public static extern global::System.IntPtr FbxFogDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxHSBDT_get___")] + public static extern global::System.IntPtr FbxHSBDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIKReachTranslationDT_get___")] + public static extern global::System.IntPtr FbxIKReachTranslationDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIKReachRotationDT_get___")] + public static extern global::System.IntPtr FbxIKReachRotationDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIntensityDT_get___")] + public static extern global::System.IntPtr FbxIntensityDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLookAtDT_get___")] + public static extern global::System.IntPtr FbxLookAtDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxOcclusionDT_get___")] + public static extern global::System.IntPtr FbxOcclusionDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxOpticalCenterXDT_get___")] + public static extern global::System.IntPtr FbxOpticalCenterXDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxOpticalCenterYDT_get___")] + public static extern global::System.IntPtr FbxOpticalCenterYDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxOrientationDT_get___")] + public static extern global::System.IntPtr FbxOrientationDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxRealDT_get___")] + public static extern global::System.IntPtr FbxRealDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxRollDT_get___")] + public static extern global::System.IntPtr FbxRollDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScalingUVDT_get___")] + public static extern global::System.IntPtr FbxScalingUVDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxShapeDT_get___")] + public static extern global::System.IntPtr FbxShapeDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStringListDT_get___")] + public static extern global::System.IntPtr FbxStringListDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTextureRotationDT_get___")] + public static extern global::System.IntPtr FbxTextureRotationDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeCodeDT_get___")] + public static extern global::System.IntPtr FbxTimeCodeDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeWarpDT_get___")] + public static extern global::System.IntPtr FbxTimeWarpDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTranslationUVDT_get___")] + public static extern global::System.IntPtr FbxTranslationUVDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxWeightDT_get___")] + public static extern global::System.IntPtr FbxWeightDT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_IsValidColor___")] + public static extern bool IsValidColor(FbxColor jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxTime___")] + public static extern global::System.IntPtr new_FbxTime(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_SetGlobalTimeMode___")] + public static extern void FbxTime_SetGlobalTimeMode(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetGlobalTimeMode___")] + public static extern int FbxTime_GetGlobalTimeMode(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_SetGlobalTimeProtocol___")] + public static extern void FbxTime_SetGlobalTimeProtocol(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetGlobalTimeProtocol___")] + public static extern int FbxTime_GetGlobalTimeProtocol(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFrameRate___")] + public static extern double FbxTime_GetFrameRate(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_ConvertFrameRateToTimeMode__SWIG_0___")] + public static extern int FbxTime_ConvertFrameRateToTimeMode__SWIG_0(double jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_ConvertFrameRateToTimeMode__SWIG_1___")] + public static extern int FbxTime_ConvertFrameRateToTimeMode__SWIG_1(double jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetRaw___")] + public static extern long FbxTime_GetRaw(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetMilliSeconds___")] + public static extern long FbxTime_GetMilliSeconds(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetSecondDouble___")] + public static extern double FbxTime_GetSecondDouble(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetTime__SWIG_0___")] + public static extern bool FbxTime_GetTime__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out int jarg3, out int jarg4, out int jarg5, out int jarg6, out int jarg7, int jarg8); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetTime__SWIG_1___")] + public static extern bool FbxTime_GetTime__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out int jarg3, out int jarg4, out int jarg5, out int jarg6, out int jarg7); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFramedTime__SWIG_0___")] + public static extern global::System.IntPtr FbxTime_GetFramedTime__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFramedTime__SWIG_1___")] + public static extern global::System.IntPtr FbxTime_GetFramedTime__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetHourCount___")] + public static extern int FbxTime_GetHourCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetMinuteCount___")] + public static extern int FbxTime_GetMinuteCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetSecondCount___")] + public static extern int FbxTime_GetSecondCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFrameCount__SWIG_0___")] + public static extern long FbxTime_GetFrameCount__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFrameCount__SWIG_1___")] + public static extern long FbxTime_GetFrameCount__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFrameCountPrecise__SWIG_0___")] + public static extern double FbxTime_GetFrameCountPrecise__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFrameCountPrecise__SWIG_1___")] + public static extern double FbxTime_GetFrameCountPrecise__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFieldCount__SWIG_0___")] + public static extern long FbxTime_GetFieldCount__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFieldCount__SWIG_1___")] + public static extern long FbxTime_GetFieldCount__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetResidual__SWIG_0___")] + public static extern int FbxTime_GetResidual__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetResidual__SWIG_1___")] + public static extern int FbxTime_GetResidual__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_IsDropFrame__SWIG_0___")] + public static extern bool FbxTime_IsDropFrame__SWIG_0(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_IsDropFrame__SWIG_1___")] + public static extern bool FbxTime_IsDropFrame__SWIG_1(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFrameSeparator__SWIG_0___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U8)] + public static extern byte FbxTime_GetFrameSeparator__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetFrameSeparator__SWIG_1___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U8)] + public static extern byte FbxTime_GetFrameSeparator__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetTimeStringNoOptionalArgs___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxTime_GetTimeStringNoOptionalArgs(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetOneFrameValue__SWIG_0___")] + public static extern long FbxTime_GetOneFrameValue__SWIG_0(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_GetOneFrameValue__SWIG_1___")] + public static extern long FbxTime_GetOneFrameValue__SWIG_1(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromRaw___")] + public static extern global::System.IntPtr FbxTime_FromRaw(long jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromMilliSeconds___")] + public static extern global::System.IntPtr FbxTime_FromMilliSeconds(long jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromSecondDouble___")] + public static extern global::System.IntPtr FbxTime_FromSecondDouble(double jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromTimeNoOptionalArgs___")] + public static extern global::System.IntPtr FbxTime_FromTimeNoOptionalArgs(int jarg1, int jarg2, int jarg3, int jarg4, int jarg5, int jarg6, int jarg7); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromFrame__SWIG_0___")] + public static extern global::System.IntPtr FbxTime_FromFrame__SWIG_0(long jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromFrame__SWIG_1___")] + public static extern global::System.IntPtr FbxTime_FromFrame__SWIG_1(long jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromFramePrecise__SWIG_0___")] + public static extern global::System.IntPtr FbxTime_FromFramePrecise__SWIG_0(double jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromFramePrecise__SWIG_1___")] + public static extern global::System.IntPtr FbxTime_FromFramePrecise__SWIG_1(double jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTime_FromTimeStringNoOptionalArgs___")] + public static extern global::System.IntPtr FbxTime_FromTimeStringNoOptionalArgs(string jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxTime___")] + public static extern void delete_FbxTime(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxTimeSpan__SWIG_0___")] + public static extern global::System.IntPtr new_FbxTimeSpan__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxTimeSpan__SWIG_1___")] + public static extern global::System.IntPtr new_FbxTimeSpan__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_Set___")] + public static extern void FbxTimeSpan_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_SetStart___")] + public static extern void FbxTimeSpan_SetStart(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_SetStop___")] + public static extern void FbxTimeSpan_SetStop(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_GetStart___")] + public static extern global::System.IntPtr FbxTimeSpan_GetStart(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_GetStop___")] + public static extern global::System.IntPtr FbxTimeSpan_GetStop(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_GetDuration___")] + public static extern global::System.IntPtr FbxTimeSpan_GetDuration(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_GetSignedDuration___")] + public static extern global::System.IntPtr FbxTimeSpan_GetSignedDuration(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_GetDirection___")] + public static extern int FbxTimeSpan_GetDirection(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_IsInside___")] + public static extern bool FbxTimeSpan_IsInside(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_Intersect___")] + public static extern global::System.IntPtr FbxTimeSpan_Intersect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan__equals___")] + public static extern bool FbxTimeSpan__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_UnionAssignment__SWIG_0___")] + public static extern void FbxTimeSpan_UnionAssignment__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTimeSpan_UnionAssignment__SWIG_1___")] + public static extern void FbxTimeSpan_UnionAssignment__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxTimeSpan___")] + public static extern void delete_FbxTimeSpan(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxStatus__SWIG_0___")] + public static extern global::System.IntPtr new_FbxStatus__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxStatus__SWIG_1___")] + public static extern global::System.IntPtr new_FbxStatus__SWIG_1(int jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxStatus__SWIG_2___")] + public static extern global::System.IntPtr new_FbxStatus__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStatus__equals___")] + public static extern bool FbxStatus__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStatus_Error___")] + public static extern bool FbxStatus_Error(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStatus_Clear___")] + public static extern void FbxStatus_Clear(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStatus_GetCode___")] + public static extern int FbxStatus_GetCode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStatus_SetCode__SWIG_0___")] + public static extern void FbxStatus_SetCode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStatus_GetErrorString___")] + public static extern string FbxStatus_GetErrorString(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxStatus_SetCode__SWIG_1___")] + public static extern void FbxStatus_SetCode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, string jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxStatus___")] + public static extern void delete_FbxStatus(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxQuaternion__SWIG_0___")] + public static extern global::System.IntPtr new_FbxQuaternion__SWIG_0(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxQuaternion__SWIG_1___")] + public static extern global::System.IntPtr new_FbxQuaternion__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxQuaternion__SWIG_2___")] + public static extern global::System.IntPtr new_FbxQuaternion__SWIG_2(double jarg1, double jarg2, double jarg3, double jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxQuaternion__SWIG_3___")] + public static extern global::System.IntPtr new_FbxQuaternion__SWIG_3(double jarg1, double jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxQuaternion__SWIG_4___")] + public static extern global::System.IntPtr new_FbxQuaternion__SWIG_4(FbxVector4 jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxQuaternion___")] + public static extern void delete_FbxQuaternion(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_GetAtUnchecked___")] + public static extern double FbxQuaternion_GetAtUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_SetAtUnchecked___")] + public static extern void FbxQuaternion_SetAtUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Set__SWIG_0___")] + public static extern void FbxQuaternion_Set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Set__SWIG_1___")] + public static extern void FbxQuaternion_Set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Add__SWIG_0___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Add__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Sub__SWIG_0___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Sub__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Mul__SWIG_0___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Mul__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Div__SWIG_0___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Div__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Negate___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Negate(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Add__SWIG_1___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Add__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Sub__SWIG_1___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Sub__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Mul__SWIG_1___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Mul__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_operator_Div__SWIG_1___")] + public static extern global::System.IntPtr FbxQuaternion_operator_Div__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Product___")] + public static extern global::System.IntPtr FbxQuaternion_Product(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_DotProduct___")] + public static extern double FbxQuaternion_DotProduct(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Normalize___")] + public static extern void FbxQuaternion_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Conjugate___")] + public static extern void FbxQuaternion_Conjugate(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Length___")] + public static extern double FbxQuaternion_Length(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Inverse___")] + public static extern void FbxQuaternion_Inverse(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_SetAxisAngle___")] + public static extern void FbxQuaternion_SetAxisAngle(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Slerp___")] + public static extern global::System.IntPtr FbxQuaternion_Slerp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_ComposeSphericalXYZ___")] + public static extern void FbxQuaternion_ComposeSphericalXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_DecomposeSphericalXYZ___")] + public static extern FbxVector4 FbxQuaternion_DecomposeSphericalXYZ(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion__equals___")] + public static extern bool FbxQuaternion__equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Compare__SWIG_0___")] + public static extern int FbxQuaternion_Compare__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_Compare__SWIG_1___")] + public static extern int FbxQuaternion_Compare__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxQuaternion_GetHashCode___")] + public static extern int FbxQuaternion_GetHashCode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxSharpProgressCallback___")] + public static extern global::System.IntPtr new_FbxSharpProgressCallback(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxSharpProgressCallback___")] + public static extern void delete_FbxSharpProgressCallback(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSharpProgressCallback_Progress___")] + public static extern bool FbxSharpProgressCallback_Progress(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2, string jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSharpProgressCallback_director_connect___")] + public static extern void FbxSharpProgressCallback_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, FbxSharpProgressCallback.SwigDelegateFbxSharpProgressCallback_0 delegate0); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxLimits___")] + public static extern global::System.IntPtr new_FbxLimits(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetActive___")] + public static extern bool FbxLimits_GetActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetActive___")] + public static extern void FbxLimits_SetActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetMinXActive___")] + public static extern bool FbxLimits_GetMinXActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetMinYActive___")] + public static extern bool FbxLimits_GetMinYActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetMinZActive___")] + public static extern bool FbxLimits_GetMinZActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetMin___")] + public static extern FbxDouble3 FbxLimits_GetMin(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMinXActive___")] + public static extern void FbxLimits_SetMinXActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMinYActive___")] + public static extern void FbxLimits_SetMinYActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMinZActive___")] + public static extern void FbxLimits_SetMinZActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMinActive___")] + public static extern void FbxLimits_SetMinActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, bool jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMin___")] + public static extern void FbxLimits_SetMin(global::System.Runtime.InteropServices.HandleRef jarg1, FbxDouble3 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetMaxXActive___")] + public static extern bool FbxLimits_GetMaxXActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetMaxYActive___")] + public static extern bool FbxLimits_GetMaxYActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetMaxZActive___")] + public static extern bool FbxLimits_GetMaxZActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetMax___")] + public static extern FbxDouble3 FbxLimits_GetMax(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMaxXActive___")] + public static extern void FbxLimits_SetMaxXActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMaxYActive___")] + public static extern void FbxLimits_SetMaxYActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMaxZActive___")] + public static extern void FbxLimits_SetMaxZActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMaxActive___")] + public static extern void FbxLimits_SetMaxActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, bool jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_SetMax___")] + public static extern void FbxLimits_SetMax(global::System.Runtime.InteropServices.HandleRef jarg1, FbxDouble3 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_GetAnyMinMaxActive___")] + public static extern bool FbxLimits_GetAnyMinMaxActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLimits_Apply___")] + public static extern FbxDouble3 FbxLimits_Apply(global::System.Runtime.InteropServices.HandleRef jarg1, FbxDouble3 jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxLimits___")] + public static extern void delete_FbxLimits(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetFbxManager___")] + public static extern global::System.IntPtr FbxObject_GetFbxManager(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetScene___")] + public static extern global::System.IntPtr FbxObject_GetScene(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_Destroy__SWIG_0___")] + public static extern void FbxObject_Destroy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_Destroy__SWIG_1___")] + public static extern void FbxObject_Destroy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_SetName___")] + public static extern void FbxObject_SetName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetName___")] + public static extern string FbxObject_GetName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetNameWithoutNameSpacePrefix___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxObject_GetNameWithoutNameSpacePrefix(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_SetInitialName___")] + public static extern void FbxObject_SetInitialName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetInitialName___")] + public static extern string FbxObject_GetInitialName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetNameSpaceOnly___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxObject_GetNameSpaceOnly(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_SetNameSpace___")] + public static extern void FbxObject_SetNameSpace(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_StripPrefix___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxObject_StripPrefix(string jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetSelected___")] + public static extern bool FbxObject_GetSelected(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_SetSelected___")] + public static extern void FbxObject_SetSelected(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_ConnectSrcObject__SWIG_0___")] + public static extern bool FbxObject_ConnectSrcObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_ConnectSrcObject__SWIG_1___")] + public static extern bool FbxObject_ConnectSrcObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_IsConnectedSrcObject___")] + public static extern bool FbxObject_IsConnectedSrcObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_DisconnectSrcObject___")] + public static extern bool FbxObject_DisconnectSrcObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetSrcObjectCount___")] + public static extern int FbxObject_GetSrcObjectCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetSrcObject__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_GetSrcObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetSrcObject__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_GetSrcObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindSrcObject__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_FindSrcObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindSrcObject__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_FindSrcObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_ConnectDstObject__SWIG_0___")] + public static extern bool FbxObject_ConnectDstObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_ConnectDstObject__SWIG_1___")] + public static extern bool FbxObject_ConnectDstObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_IsConnectedDstObject___")] + public static extern bool FbxObject_IsConnectedDstObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_DisconnectDstObject___")] + public static extern bool FbxObject_DisconnectDstObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetDstObjectCount___")] + public static extern int FbxObject_GetDstObjectCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetDstObject__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_GetDstObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetDstObject__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_GetDstObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindDstObject__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_FindDstObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindDstObject__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_FindDstObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetFirstProperty___")] + public static extern global::System.IntPtr FbxObject_GetFirstProperty(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetNextProperty___")] + public static extern global::System.IntPtr FbxObject_GetNextProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindProperty__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_FindProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindProperty__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_FindProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindProperty__SWIG_2___")] + public static extern global::System.IntPtr FbxObject_FindProperty__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindProperty__SWIG_3___")] + public static extern global::System.IntPtr FbxObject_FindProperty__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindPropertyHierarchical__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_FindPropertyHierarchical__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindPropertyHierarchical__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_FindPropertyHierarchical__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindPropertyHierarchical__SWIG_2___")] + public static extern global::System.IntPtr FbxObject_FindPropertyHierarchical__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindPropertyHierarchical__SWIG_3___")] + public static extern global::System.IntPtr FbxObject_FindPropertyHierarchical__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetClassRootProperty___")] + public static extern global::System.IntPtr FbxObject_GetClassRootProperty(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_ConnectSrcProperty___")] + public static extern bool FbxObject_ConnectSrcProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_IsConnectedSrcProperty___")] + public static extern bool FbxObject_IsConnectedSrcProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_DisconnectSrcProperty___")] + public static extern bool FbxObject_DisconnectSrcProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetSrcPropertyCount___")] + public static extern int FbxObject_GetSrcPropertyCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetSrcProperty__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_GetSrcProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetSrcProperty__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_GetSrcProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindSrcProperty__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_FindSrcProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindSrcProperty__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_FindSrcProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_ConnectDstProperty___")] + public static extern bool FbxObject_ConnectDstProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_IsConnectedDstProperty___")] + public static extern bool FbxObject_IsConnectedDstProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_DisconnectDstProperty___")] + public static extern bool FbxObject_DisconnectDstProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetDstPropertyCount___")] + public static extern int FbxObject_GetDstPropertyCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetDstProperty__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_GetDstProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetDstProperty__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_GetDstProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindDstProperty__SWIG_0___")] + public static extern global::System.IntPtr FbxObject_FindDstProperty__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_FindDstProperty__SWIG_1___")] + public static extern global::System.IntPtr FbxObject_FindDstProperty__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_AddImplementation___")] + public static extern bool FbxObject_AddImplementation(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_RemoveImplementation___")] + public static extern bool FbxObject_RemoveImplementation(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_HasDefaultImplementation___")] + public static extern bool FbxObject_HasDefaultImplementation(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_GetDefaultImplementation___")] + public static extern global::System.IntPtr FbxObject_GetDefaultImplementation(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_SetDefaultImplementation___")] + public static extern bool FbxObject_SetDefaultImplementation(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCollection_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxCollection_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCollection_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxCollection_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCollection_Clear___")] + public static extern void FbxCollection_Clear(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCollection_AddMember___")] + public static extern bool FbxCollection_AddMember(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCollection_GetMemberCount___")] + public static extern int FbxCollection_GetMemberCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCollection_GetAnimLayerMember__SWIG_0___")] + public static extern global::System.IntPtr FbxCollection_GetAnimLayerMember__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCollection_GetAnimLayerMember__SWIG_1___")] + public static extern global::System.IntPtr FbxCollection_GetAnimLayerMember__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxDocumentInfo_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxDocumentInfo_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_LastSavedUrl_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_LastSavedUrl_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Url_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_Url_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Original_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_Original_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Original_ApplicationVendor_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_Original_ApplicationVendor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Original_ApplicationName_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_Original_ApplicationName_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Original_ApplicationVersion_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_Original_ApplicationVersion_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Original_FileName_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_Original_FileName_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_LastSaved_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_LastSaved_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_LastSaved_ApplicationVendor_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_LastSaved_ApplicationVendor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_LastSaved_ApplicationName_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_LastSaved_ApplicationName_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_LastSaved_ApplicationVersion_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_LastSaved_ApplicationVersion_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_EmbeddedUrl_get___")] + public static extern global::System.IntPtr FbxDocumentInfo_EmbeddedUrl_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mTitle_set___")] + public static extern void FbxDocumentInfo_mTitle_set(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mTitle_get___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxDocumentInfo_mTitle_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mSubject_set___")] + public static extern void FbxDocumentInfo_mSubject_set(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mSubject_get___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxDocumentInfo_mSubject_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mAuthor_set___")] + public static extern void FbxDocumentInfo_mAuthor_set(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mAuthor_get___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxDocumentInfo_mAuthor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mKeywords_set___")] + public static extern void FbxDocumentInfo_mKeywords_set(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mKeywords_get___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxDocumentInfo_mKeywords_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mRevision_set___")] + public static extern void FbxDocumentInfo_mRevision_set(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mRevision_get___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxDocumentInfo_mRevision_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mComment_set___")] + public static extern void FbxDocumentInfo_mComment_set(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_mComment_get___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxDocumentInfo_mComment_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_Clear___")] + public static extern void FbxDocumentInfo_Clear(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocument_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxDocument_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocument_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxDocument_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocument_GetDocumentInfo___")] + public static extern global::System.IntPtr FbxDocument_GetDocumentInfo(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocument_SetDocumentInfo___")] + public static extern void FbxDocument_SetDocumentInfo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxScene_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxScene_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_GetRootNode___")] + public static extern global::System.IntPtr FbxScene_GetRootNode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_GetPose___")] + public static extern global::System.IntPtr FbxScene_GetPose(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_AddPose___")] + public static extern bool FbxScene_AddPose(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_GetSceneInfo___")] + public static extern global::System.IntPtr FbxScene_GetSceneInfo(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_SetSceneInfo___")] + public static extern void FbxScene_SetSceneInfo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_GetGlobalSettings___")] + public static extern global::System.IntPtr FbxScene_GetGlobalSettings(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_SetCurrentAnimationStack___")] + public static extern void FbxScene_SetCurrentAnimationStack(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_GetCurrentAnimationStack___")] + public static extern global::System.IntPtr FbxScene_GetCurrentAnimationStack(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_GetNodeCount___")] + public static extern int FbxScene_GetNodeCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_IOSROOT_get___")] + public static extern string IOSROOT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_IMP_FBX_GLOBAL_SETTINGS_get___")] + public static extern string IMP_FBX_GLOBAL_SETTINGS_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_IMP_FBX_MATERIAL_get___")] + public static extern string IMP_FBX_MATERIAL_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_IMP_FBX_TEXTURE_get___")] + public static extern string IMP_FBX_TEXTURE_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_IMP_FBX_ANIMATION_get___")] + public static extern string IMP_FBX_ANIMATION_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_IMP_FBX_EXTRACT_EMBEDDED_DATA_get___")] + public static extern string IMP_FBX_EXTRACT_EMBEDDED_DATA_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_EXP_FBX_GLOBAL_SETTINGS_get___")] + public static extern string EXP_FBX_GLOBAL_SETTINGS_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_EXP_FBX_MATERIAL_get___")] + public static extern string EXP_FBX_MATERIAL_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_EXP_FBX_TEXTURE_get___")] + public static extern string EXP_FBX_TEXTURE_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_EXP_FBX_ANIMATION_get___")] + public static extern string EXP_FBX_ANIMATION_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_EXP_FBX_EMBEDDED_get___")] + public static extern string EXP_FBX_EMBEDDED_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOBase_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxIOBase_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOBase_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxIOBase_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOBase_Initialize__SWIG_0___")] + public static extern bool FbxIOBase_Initialize__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOBase_Initialize__SWIG_1___")] + public static extern bool FbxIOBase_Initialize__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOBase_Initialize__SWIG_2___")] + public static extern bool FbxIOBase_Initialize__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOBase_GetFileName___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxIOBase_GetFileName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOBase_GetStatus___")] + public static extern global::System.IntPtr FbxIOBase_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxExporter_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxExporter_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter_Export___")] + public static extern bool FbxExporter_Export(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter_SetFileExportVersion___")] + public static extern bool FbxExporter_SetFileExportVersion(global::System.Runtime.InteropServices.HandleRef jarg1, [global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)]string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter_GetFileHeaderInfo___")] + public static extern global::System.IntPtr FbxExporter_GetFileHeaderInfo(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter_SetFbxSharpProgressCallback___")] + public static extern void FbxExporter_SetFbxSharpProgressCallback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter__getCurrentWritableVersionsLength___")] + public static extern int FbxExporter__getCurrentWritableVersionsLength(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter__getCurrentWritableVersionByIndex___")] + public static extern string FbxExporter__getCurrentWritableVersionByIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxImporter_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxImporter_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_GetFileVersion___")] + public static extern void FbxImporter_GetFileVersion(global::System.Runtime.InteropServices.HandleRef jarg1, out int jarg2, out int jarg3, out int jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_GetFileHeaderInfo___")] + public static extern global::System.IntPtr FbxImporter_GetFileHeaderInfo(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_Import___")] + public static extern bool FbxImporter_Import(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_GetAnimStackCount___")] + public static extern int FbxImporter_GetAnimStackCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_GetActiveAnimStackName___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxImporter_GetActiveAnimStackName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_IsFBX___")] + public static extern bool FbxImporter_IsFBX(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_SetFbxSharpProgressCallback___")] + public static extern void FbxImporter_SetFbxSharpProgressCallback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOSettings_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxIOSettings_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOSettings_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxIOSettings_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOSettings_SetBoolProp___")] + public static extern void FbxIOSettings_SetBoolProp(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxNode_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxNode_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetParent___")] + public static extern global::System.IntPtr FbxNode_GetParent(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_AddChild___")] + public static extern bool FbxNode_AddChild(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_RemoveChild___")] + public static extern global::System.IntPtr FbxNode_RemoveChild(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetChildCount__SWIG_0___")] + public static extern int FbxNode_GetChildCount__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetChildCount__SWIG_1___")] + public static extern int FbxNode_GetChildCount__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetChild___")] + public static extern global::System.IntPtr FbxNode_GetChild(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_FindChild__SWIG_0___")] + public static extern global::System.IntPtr FbxNode_FindChild__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, bool jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_FindChild__SWIG_1___")] + public static extern global::System.IntPtr FbxNode_FindChild__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_FindChild__SWIG_2___")] + public static extern global::System.IntPtr FbxNode_FindChild__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetVisibility___")] + public static extern void FbxNode_SetVisibility(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetVisibility___")] + public static extern bool FbxNode_GetVisibility(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetShadingMode___")] + public static extern void FbxNode_SetShadingMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetShadingMode___")] + public static extern int FbxNode_GetShadingMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetNodeAttribute___")] + public static extern global::System.IntPtr FbxNode_SetNodeAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetNodeAttribute___")] + public static extern global::System.IntPtr FbxNode_GetNodeAttribute(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetSkeleton___")] + public static extern global::System.IntPtr FbxNode_GetSkeleton(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetGeometry___")] + public static extern global::System.IntPtr FbxNode_GetGeometry(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetMesh___")] + public static extern global::System.IntPtr FbxNode_GetMesh(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetNurbsCurve___")] + public static extern global::System.IntPtr FbxNode_GetNurbsCurve(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetCamera___")] + public static extern global::System.IntPtr FbxNode_GetCamera(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetLight___")] + public static extern global::System.IntPtr FbxNode_GetLight(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetTransformationInheritType___")] + public static extern void FbxNode_SetTransformationInheritType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetPivotState___")] + public static extern void FbxNode_SetPivotState(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetRotationOrder___")] + public static extern void FbxNode_SetRotationOrder(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetRotationOrder___")] + public static extern void FbxNode_GetRotationOrder(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, out int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetRotationActive___")] + public static extern void FbxNode_SetRotationActive(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetRotationActive___")] + public static extern bool FbxNode_GetRotationActive(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetQuaternionInterpolation___")] + public static extern void FbxNode_SetQuaternionInterpolation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetQuaternionInterpolation___")] + public static extern int FbxNode_GetQuaternionInterpolation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetRotationOffset___")] + public static extern void FbxNode_SetRotationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetRotationOffset___")] + public static extern FbxVector4 FbxNode_GetRotationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetRotationPivot___")] + public static extern void FbxNode_SetRotationPivot(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetRotationPivot___")] + public static extern FbxVector4 FbxNode_GetRotationPivot(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetPreRotation___")] + public static extern void FbxNode_SetPreRotation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetPreRotation___")] + public static extern FbxVector4 FbxNode_GetPreRotation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetPostRotation___")] + public static extern void FbxNode_SetPostRotation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetPostRotation___")] + public static extern FbxVector4 FbxNode_GetPostRotation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetScalingOffset___")] + public static extern void FbxNode_SetScalingOffset(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetScalingOffset___")] + public static extern FbxVector4 FbxNode_GetScalingOffset(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetScalingPivot___")] + public static extern void FbxNode_SetScalingPivot(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetScalingPivot___")] + public static extern FbxVector4 FbxNode_GetScalingPivot(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetGeometricTranslation___")] + public static extern void FbxNode_SetGeometricTranslation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetGeometricRotation___")] + public static extern void FbxNode_SetGeometricRotation(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SetGeometricScaling___")] + public static extern void FbxNode_SetGeometricScaling(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_ConvertPivotAnimationRecursive__SWIG_0___")] + public static extern void FbxNode_ConvertPivotAnimationRecursive__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, double jarg4, bool jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_ConvertPivotAnimationRecursive__SWIG_1___")] + public static extern void FbxNode_ConvertPivotAnimationRecursive__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, double jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateGlobalTransform__SWIG_0___")] + public static extern global::System.IntPtr FbxNode_EvaluateGlobalTransform__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, bool jarg4, bool jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateGlobalTransform__SWIG_1___")] + public static extern global::System.IntPtr FbxNode_EvaluateGlobalTransform__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateGlobalTransform__SWIG_2___")] + public static extern global::System.IntPtr FbxNode_EvaluateGlobalTransform__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateGlobalTransform__SWIG_3___")] + public static extern global::System.IntPtr FbxNode_EvaluateGlobalTransform__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateGlobalTransform__SWIG_4___")] + public static extern global::System.IntPtr FbxNode_EvaluateGlobalTransform__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateLocalTransform__SWIG_0___")] + public static extern global::System.IntPtr FbxNode_EvaluateLocalTransform__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, bool jarg4, bool jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateLocalTransform__SWIG_1___")] + public static extern global::System.IntPtr FbxNode_EvaluateLocalTransform__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateLocalTransform__SWIG_2___")] + public static extern global::System.IntPtr FbxNode_EvaluateLocalTransform__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateLocalTransform__SWIG_3___")] + public static extern global::System.IntPtr FbxNode_EvaluateLocalTransform__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_EvaluateLocalTransform__SWIG_4___")] + public static extern global::System.IntPtr FbxNode_EvaluateLocalTransform__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_AddMaterial___")] + public static extern int FbxNode_AddMaterial(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetMaterialCount___")] + public static extern int FbxNode_GetMaterialCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetMaterial___")] + public static extern global::System.IntPtr FbxNode_GetMaterial(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetMaterialIndex___")] + public static extern int FbxNode_GetMaterialIndex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_LclTranslation_get___")] + public static extern global::System.IntPtr FbxNode_LclTranslation_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_LclRotation_get___")] + public static extern global::System.IntPtr FbxNode_LclRotation_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_LclScaling_get___")] + public static extern global::System.IntPtr FbxNode_LclScaling_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_VisibilityInheritance_get___")] + public static extern global::System.IntPtr FbxNode_VisibilityInheritance_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_InheritType_get___")] + public static extern global::System.IntPtr FbxNode_InheritType_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetTranslationLimits___")] + public static extern global::System.IntPtr FbxNode_GetTranslationLimits(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetRotationLimits___")] + public static extern global::System.IntPtr FbxNode_GetRotationLimits(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_GetScalingLimits___")] + public static extern global::System.IntPtr FbxNode_GetScalingLimits(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxNodeAttribute_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxNodeAttribute_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_sColor_get___")] + public static extern string FbxNodeAttribute_sColor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_sDefaultColor_get___")] + public static extern FbxDouble3 FbxNodeAttribute_sDefaultColor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_Color_get___")] + public static extern global::System.IntPtr FbxNodeAttribute_Color_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_GetAttributeType___")] + public static extern int FbxNodeAttribute_GetAttributeType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_GetNodeCount___")] + public static extern int FbxNodeAttribute_GetNodeCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_GetNode__SWIG_0___")] + public static extern global::System.IntPtr FbxNodeAttribute_GetNode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_GetNode__SWIG_1___")] + public static extern global::System.IntPtr FbxNodeAttribute_GetNode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxNull_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxNull_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_Reset___")] + public static extern void FbxNull_Reset(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_GetSizeDefaultValue___")] + public static extern double FbxNull_GetSizeDefaultValue(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_sSize_get___")] + public static extern string FbxNull_sSize_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_sLook_get___")] + public static extern string FbxNull_sLook_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_sDefaultSize_get___")] + public static extern double FbxNull_sDefaultSize_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_sDefaultLook_get___")] + public static extern int FbxNull_sDefaultLook_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_Size_get___")] + public static extern global::System.IntPtr FbxNull_Size_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_Look_get___")] + public static extern global::System.IntPtr FbxNull_Look_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerContainer_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxLayerContainer_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerContainer_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxLayerContainer_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerContainer_CreateLayer___")] + public static extern int FbxLayerContainer_CreateLayer(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerContainer_GetLayerCount__SWIG_0___")] + public static extern int FbxLayerContainer_GetLayerCount__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerContainer_GetLayerCount__SWIG_1___")] + public static extern int FbxLayerContainer_GetLayerCount__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerContainer_GetLayerCount__SWIG_2___")] + public static extern int FbxLayerContainer_GetLayerCount__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerContainer_GetLayer___")] + public static extern global::System.IntPtr FbxLayerContainer_GetLayer(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxGeometryBase_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxGeometryBase_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_InitControlPoints___")] + public static extern void FbxGeometryBase_InitControlPoints(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_GetControlPointsCount___")] + public static extern int FbxGeometryBase_GetControlPointsCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_BBoxMin_get___")] + public static extern global::System.IntPtr FbxGeometryBase_BBoxMin_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_BBoxMax_get___")] + public static extern global::System.IntPtr FbxGeometryBase_BBoxMax_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_ComputeBBox___")] + public static extern void FbxGeometryBase_ComputeBBox(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_CreateElementNormal___")] + public static extern global::System.IntPtr FbxGeometryBase_CreateElementNormal(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_CreateElementTangent___")] + public static extern global::System.IntPtr FbxGeometryBase_CreateElementTangent(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_SetControlPointAt___")] + public static extern void FbxGeometryBase_SetControlPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, FbxVector4 jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_GetControlPointAt___")] + public static extern FbxVector4 FbxGeometryBase_GetControlPointAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxGeometry_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxGeometry_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_AddDeformer___")] + public static extern int FbxGeometry_AddDeformer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_GetDeformerCount__SWIG_0___")] + public static extern int FbxGeometry_GetDeformerCount__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_GetDeformer__SWIG_0___")] + public static extern global::System.IntPtr FbxGeometry_GetDeformer__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_GetDeformer__SWIG_1___")] + public static extern global::System.IntPtr FbxGeometry_GetDeformer__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_GetDeformerCount__SWIG_1___")] + public static extern int FbxGeometry_GetDeformerCount__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_GetDeformer__SWIG_2___")] + public static extern global::System.IntPtr FbxGeometry_GetDeformer__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_GetDeformer__SWIG_3___")] + public static extern global::System.IntPtr FbxGeometry_GetDeformer__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_GetBlendShapeDeformer__SWIG_0___")] + public static extern global::System.IntPtr FbxGeometry_GetBlendShapeDeformer__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_GetBlendShapeDeformer__SWIG_1___")] + public static extern global::System.IntPtr FbxGeometry_GetBlendShapeDeformer__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxMesh_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxMesh_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_BeginPolygonUnchecked___")] + public static extern void FbxMesh_BeginPolygonUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, bool jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_AddPolygonUnchecked___")] + public static extern void FbxMesh_AddPolygonUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_EndPolygonUnchecked___")] + public static extern void FbxMesh_EndPolygonUnchecked(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_GetPolygonCount___")] + public static extern int FbxMesh_GetPolygonCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_GetPolygonSize___")] + public static extern int FbxMesh_GetPolygonSize(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_GetPolygonVertex___")] + public static extern int FbxMesh_GetPolygonVertex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_GetPolygonVertexNormal___")] + public static extern bool FbxMesh_GetPolygonVertexNormal(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, out FbxVector4 jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_GetPolygonVertexCount___")] + public static extern int FbxMesh_GetPolygonVertexCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_SplitPoints__SWIG_0___")] + public static extern bool FbxMesh_SplitPoints__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_SplitPoints__SWIG_1___")] + public static extern bool FbxMesh_SplitPoints__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxNurbsCurve_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxNurbsCurve_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_InitControlPoints___")] + public static extern void FbxNurbsCurve_InitControlPoints(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_GetKnotCount___")] + public static extern int FbxNurbsCurve_GetKnotCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_SetOrder___")] + public static extern void FbxNurbsCurve_SetOrder(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_GetOrder___")] + public static extern int FbxNurbsCurve_GetOrder(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_SetStep___")] + public static extern void FbxNurbsCurve_SetStep(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_GetStep___")] + public static extern int FbxNurbsCurve_GetStep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_SetDimension___")] + public static extern void FbxNurbsCurve_SetDimension(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_GetDimension___")] + public static extern int FbxNurbsCurve_GetDimension(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_IsRational___")] + public static extern bool FbxNurbsCurve_IsRational(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_GetSpanCount___")] + public static extern int FbxNurbsCurve_GetSpanCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_IsPolyline___")] + public static extern bool FbxNurbsCurve_IsPolyline(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_IsBezier___")] + public static extern bool FbxNurbsCurve_IsBezier(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_GetKnotVectorAt___")] + public static extern double FbxNurbsCurve_GetKnotVectorAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_SetKnotVectorAt___")] + public static extern void FbxNurbsCurve_SetKnotVectorAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxGlobalSettings_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxGlobalSettings_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_SetAxisSystem___")] + public static extern void FbxGlobalSettings_SetAxisSystem(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_GetAxisSystem___")] + public static extern global::System.IntPtr FbxGlobalSettings_GetAxisSystem(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_SetSystemUnit___")] + public static extern void FbxGlobalSettings_SetSystemUnit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_GetSystemUnit___")] + public static extern global::System.IntPtr FbxGlobalSettings_GetSystemUnit(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_SetAmbientColor___")] + public static extern void FbxGlobalSettings_SetAmbientColor(global::System.Runtime.InteropServices.HandleRef jarg1, FbxColor jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_GetAmbientColor___")] + public static extern FbxColor FbxGlobalSettings_GetAmbientColor(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_SetDefaultCamera___")] + public static extern bool FbxGlobalSettings_SetDefaultCamera(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_GetDefaultCamera___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxGlobalSettings_GetDefaultCamera(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_SetTimeMode___")] + public static extern void FbxGlobalSettings_SetTimeMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_GetTimeMode___")] + public static extern int FbxGlobalSettings_GetTimeMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxImplementation_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxImplementation_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_Language_get___")] + public static extern global::System.IntPtr FbxImplementation_Language_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_LanguageVersion_get___")] + public static extern global::System.IntPtr FbxImplementation_LanguageVersion_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_RenderAPI_get___")] + public static extern global::System.IntPtr FbxImplementation_RenderAPI_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_RenderAPIVersion_get___")] + public static extern global::System.IntPtr FbxImplementation_RenderAPIVersion_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_RootBindingName_get___")] + public static extern global::System.IntPtr FbxImplementation_RootBindingName_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_AddNewTable___")] + public static extern global::System.IntPtr FbxImplementation_AddNewTable(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_GetRootTable___")] + public static extern global::System.IntPtr FbxImplementation_GetRootTable(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_SHADING_LANGUAGE_HLSL_get___")] + public static extern string FBXSDK_SHADING_LANGUAGE_HLSL_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_SHADING_LANGUAGE_GLSL_get___")] + public static extern string FBXSDK_SHADING_LANGUAGE_GLSL_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_SHADING_LANGUAGE_CGFX_get___")] + public static extern string FBXSDK_SHADING_LANGUAGE_CGFX_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_SHADING_LANGUAGE_SFX_get___")] + public static extern string FBXSDK_SHADING_LANGUAGE_SFX_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_SHADING_LANGUAGE_MRSL_get___")] + public static extern string FBXSDK_SHADING_LANGUAGE_MRSL_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_RENDERING_API_DIRECTX_get___")] + public static extern string FBXSDK_RENDERING_API_DIRECTX_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_RENDERING_API_OPENGL_get___")] + public static extern string FBXSDK_RENDERING_API_OPENGL_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_RENDERING_API_MENTALRAY_get___")] + public static extern string FBXSDK_RENDERING_API_MENTALRAY_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_RENDERING_API_PREVIEW_get___")] + public static extern string FBXSDK_RENDERING_API_PREVIEW_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxSurfaceMaterial_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxSurfaceMaterial_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sShadingModel_get___")] + public static extern string FbxSurfaceMaterial_sShadingModel_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sMultiLayer_get___")] + public static extern string FbxSurfaceMaterial_sMultiLayer_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sEmissive_get___")] + public static extern string FbxSurfaceMaterial_sEmissive_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sEmissiveFactor_get___")] + public static extern string FbxSurfaceMaterial_sEmissiveFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sAmbient_get___")] + public static extern string FbxSurfaceMaterial_sAmbient_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sAmbientFactor_get___")] + public static extern string FbxSurfaceMaterial_sAmbientFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sDiffuse_get___")] + public static extern string FbxSurfaceMaterial_sDiffuse_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sDiffuseFactor_get___")] + public static extern string FbxSurfaceMaterial_sDiffuseFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sSpecular_get___")] + public static extern string FbxSurfaceMaterial_sSpecular_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sSpecularFactor_get___")] + public static extern string FbxSurfaceMaterial_sSpecularFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sShininess_get___")] + public static extern string FbxSurfaceMaterial_sShininess_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sBump_get___")] + public static extern string FbxSurfaceMaterial_sBump_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sNormalMap_get___")] + public static extern string FbxSurfaceMaterial_sNormalMap_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sBumpFactor_get___")] + public static extern string FbxSurfaceMaterial_sBumpFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sTransparentColor_get___")] + public static extern string FbxSurfaceMaterial_sTransparentColor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sTransparencyFactor_get___")] + public static extern string FbxSurfaceMaterial_sTransparencyFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sReflection_get___")] + public static extern string FbxSurfaceMaterial_sReflection_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sReflectionFactor_get___")] + public static extern string FbxSurfaceMaterial_sReflectionFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sDisplacementColor_get___")] + public static extern string FbxSurfaceMaterial_sDisplacementColor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sDisplacementFactor_get___")] + public static extern string FbxSurfaceMaterial_sDisplacementFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sVectorDisplacementColor_get___")] + public static extern string FbxSurfaceMaterial_sVectorDisplacementColor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sVectorDisplacementFactor_get___")] + public static extern string FbxSurfaceMaterial_sVectorDisplacementFactor_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_ShadingModel_get___")] + public static extern global::System.IntPtr FbxSurfaceMaterial_ShadingModel_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_MultiLayer_get___")] + public static extern global::System.IntPtr FbxSurfaceMaterial_MultiLayer_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sMultiLayerDefault_get___")] + public static extern bool FbxSurfaceMaterial_sMultiLayerDefault_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_sShadingModelDefault_get___")] + public static extern string FbxSurfaceMaterial_sShadingModelDefault_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxSurfaceLambert_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxSurfaceLambert_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_Emissive_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_Emissive_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_EmissiveFactor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_EmissiveFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_Ambient_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_Ambient_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_AmbientFactor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_AmbientFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_Diffuse_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_Diffuse_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_DiffuseFactor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_DiffuseFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_NormalMap_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_NormalMap_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_Bump_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_Bump_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_BumpFactor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_BumpFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_TransparentColor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_TransparentColor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_TransparencyFactor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_TransparencyFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_DisplacementColor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_DisplacementColor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_DisplacementFactor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_DisplacementFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_VectorDisplacementColor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_VectorDisplacementColor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_VectorDisplacementFactor_get___")] + public static extern global::System.IntPtr FbxSurfaceLambert_VectorDisplacementFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_fromMaterial___")] + public static extern global::System.IntPtr FbxSurfaceLambert_fromMaterial(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfacePhong_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxSurfacePhong_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfacePhong_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxSurfacePhong_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfacePhong_Specular_get___")] + public static extern global::System.IntPtr FbxSurfacePhong_Specular_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfacePhong_SpecularFactor_get___")] + public static extern global::System.IntPtr FbxSurfacePhong_SpecularFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfacePhong_Shininess_get___")] + public static extern global::System.IntPtr FbxSurfacePhong_Shininess_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfacePhong_Reflection_get___")] + public static extern global::System.IntPtr FbxSurfacePhong_Reflection_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfacePhong_ReflectionFactor_get___")] + public static extern global::System.IntPtr FbxSurfacePhong_ReflectionFactor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxTexture_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxTexture_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_Alpha_get___")] + public static extern global::System.IntPtr FbxTexture_Alpha_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_WrapModeU_get___")] + public static extern global::System.IntPtr FbxTexture_WrapModeU_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_WrapModeV_get___")] + public static extern global::System.IntPtr FbxTexture_WrapModeV_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_UVSwap_get___")] + public static extern global::System.IntPtr FbxTexture_UVSwap_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_PremultiplyAlpha_get___")] + public static extern global::System.IntPtr FbxTexture_PremultiplyAlpha_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_Translation_get___")] + public static extern global::System.IntPtr FbxTexture_Translation_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_Rotation_get___")] + public static extern global::System.IntPtr FbxTexture_Rotation_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_Scaling_get___")] + public static extern global::System.IntPtr FbxTexture_Scaling_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_RotationPivot_get___")] + public static extern global::System.IntPtr FbxTexture_RotationPivot_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_ScalingPivot_get___")] + public static extern global::System.IntPtr FbxTexture_ScalingPivot_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_CurrentTextureBlendMode_get___")] + public static extern global::System.IntPtr FbxTexture_CurrentTextureBlendMode_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_UVSet_get___")] + public static extern global::System.IntPtr FbxTexture_UVSet_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_sVectorSpace_get___")] + public static extern string FbxTexture_sVectorSpace_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_sVectorSpaceWorld_get___")] + public static extern string FbxTexture_sVectorSpaceWorld_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_sVectorSpaceObject_get___")] + public static extern string FbxTexture_sVectorSpaceObject_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_sVectorSpaceTangent_get___")] + public static extern string FbxTexture_sVectorSpaceTangent_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_sVectorEncoding_get___")] + public static extern string FbxTexture_sVectorEncoding_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_sVectorEncodingFP_get___")] + public static extern string FbxTexture_sVectorEncodingFP_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_sVectorEncodingSE_get___")] + public static extern string FbxTexture_sVectorEncodingSE_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_Reset___")] + public static extern void FbxTexture_Reset(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetSwapUV___")] + public static extern void FbxTexture_SetSwapUV(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetSwapUV___")] + public static extern bool FbxTexture_GetSwapUV(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetPremultiplyAlpha___")] + public static extern void FbxTexture_SetPremultiplyAlpha(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetPremultiplyAlpha___")] + public static extern bool FbxTexture_GetPremultiplyAlpha(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetAlphaSource___")] + public static extern void FbxTexture_SetAlphaSource(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetAlphaSource___")] + public static extern int FbxTexture_GetAlphaSource(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetCropping___")] + public static extern void FbxTexture_SetCropping(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, int jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetCroppingLeft___")] + public static extern int FbxTexture_GetCroppingLeft(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetCroppingTop___")] + public static extern int FbxTexture_GetCroppingTop(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetCroppingRight___")] + public static extern int FbxTexture_GetCroppingRight(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetCroppingBottom___")] + public static extern int FbxTexture_GetCroppingBottom(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetMappingType___")] + public static extern void FbxTexture_SetMappingType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetMappingType___")] + public static extern int FbxTexture_GetMappingType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetPlanarMappingNormal___")] + public static extern void FbxTexture_SetPlanarMappingNormal(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetPlanarMappingNormal___")] + public static extern int FbxTexture_GetPlanarMappingNormal(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetTextureUse___")] + public static extern void FbxTexture_SetTextureUse(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetTextureUse___")] + public static extern int FbxTexture_GetTextureUse(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetWrapMode___")] + public static extern void FbxTexture_SetWrapMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetWrapModeU___")] + public static extern int FbxTexture_GetWrapModeU(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetWrapModeV___")] + public static extern int FbxTexture_GetWrapModeV(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetBlendMode___")] + public static extern void FbxTexture_SetBlendMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetBlendMode___")] + public static extern int FbxTexture_GetBlendMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetDefaultAlpha___")] + public static extern void FbxTexture_SetDefaultAlpha(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetDefaultAlpha___")] + public static extern double FbxTexture_GetDefaultAlpha(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetTranslation___")] + public static extern void FbxTexture_SetTranslation(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetTranslationU___")] + public static extern double FbxTexture_GetTranslationU(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetTranslationV___")] + public static extern double FbxTexture_GetTranslationV(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetRotation__SWIG_0___")] + public static extern void FbxTexture_SetRotation__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetRotation__SWIG_1___")] + public static extern void FbxTexture_SetRotation__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetRotationU___")] + public static extern double FbxTexture_GetRotationU(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetRotationV___")] + public static extern double FbxTexture_GetRotationV(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetRotationW___")] + public static extern double FbxTexture_GetRotationW(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SetScale___")] + public static extern void FbxTexture_SetScale(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetScaleU___")] + public static extern double FbxTexture_GetScaleU(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_GetScaleV___")] + public static extern double FbxTexture_GetScaleV(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxFileTexture_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxFileTexture_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_UseMaterial_get___")] + public static extern global::System.IntPtr FbxFileTexture_UseMaterial_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_UseMipMap_get___")] + public static extern global::System.IntPtr FbxFileTexture_UseMipMap_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_SetFileName___")] + public static extern bool FbxFileTexture_SetFileName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_SetRelativeFileName___")] + public static extern bool FbxFileTexture_SetRelativeFileName(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_GetFileName___")] + public static extern string FbxFileTexture_GetFileName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_GetRelativeFileName___")] + public static extern string FbxFileTexture_GetRelativeFileName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_SetMaterialUse___")] + public static extern void FbxFileTexture_SetMaterialUse(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_GetMaterialUse___")] + public static extern int FbxFileTexture_GetMaterialUse(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBindingTableBase_AddNewEntry___")] + public static extern global::System.IntPtr FbxBindingTableBase_AddNewEntry(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBindingTable_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxBindingTable_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBindingTable_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxBindingTable_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBindingTable_DescRelativeURL_get___")] + public static extern global::System.IntPtr FbxBindingTable_DescRelativeURL_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBindingTable_DescAbsoluteURL_get___")] + public static extern global::System.IntPtr FbxBindingTable_DescAbsoluteURL_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBindingTable_DescTAG_get___")] + public static extern global::System.IntPtr FbxBindingTable_DescTAG_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxEntryView_IsValid___")] + public static extern bool FbxEntryView_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxEntryView_EntryType___")] + public static extern string FbxEntryView_EntryType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxPropertyEntryView__SWIG_0___")] + public static extern global::System.IntPtr new_FbxPropertyEntryView__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxPropertyEntryView__SWIG_1___")] + public static extern global::System.IntPtr new_FbxPropertyEntryView__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxPropertyEntryView___")] + public static extern void delete_FbxPropertyEntryView(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEntryView_GetProperty___")] + public static extern string FbxPropertyEntryView_GetProperty(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEntryView_SetProperty___")] + public static extern void FbxPropertyEntryView_SetProperty(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxSemanticEntryView__SWIG_0___")] + public static extern global::System.IntPtr new_FbxSemanticEntryView__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxSemanticEntryView__SWIG_1___")] + public static extern global::System.IntPtr new_FbxSemanticEntryView__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxSemanticEntryView___")] + public static extern void delete_FbxSemanticEntryView(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSemanticEntryView_SetSemantic___")] + public static extern void FbxSemanticEntryView_SetSemantic(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSemanticEntryView_GetSemantic__SWIG_0___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxSemanticEntryView_GetSemantic__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSemanticEntryView_GetSemantic__SWIG_1___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxSemanticEntryView_GetSemantic__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSemanticEntryView_GetIndex___")] + public static extern int FbxSemanticEntryView_GetIndex(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxPose_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxPose_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_SetIsBindPose___")] + public static extern void FbxPose_SetIsBindPose(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_IsBindPose___")] + public static extern bool FbxPose_IsBindPose(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_GetCount___")] + public static extern int FbxPose_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_Add__SWIG_0___")] + public static extern int FbxPose_Add__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4, bool jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_Add__SWIG_1___")] + public static extern int FbxPose_Add__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, bool jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_Add__SWIG_2___")] + public static extern int FbxPose_Add__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_GetNode___")] + public static extern global::System.IntPtr FbxPose_GetNode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_GetMatrix___")] + public static extern global::System.IntPtr FbxPose_GetMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDeformer_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxDeformer_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDeformer_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxDeformer_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDeformer_GetDeformerType___")] + public static extern int FbxDeformer_GetDeformerType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSubDeformer_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxSubDeformer_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSubDeformer_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxSubDeformer_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxCluster_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxCluster_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_SetLinkMode___")] + public static extern void FbxCluster_SetLinkMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_GetLinkMode___")] + public static extern int FbxCluster_GetLinkMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_SetLink___")] + public static extern void FbxCluster_SetLink(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_GetLink___")] + public static extern global::System.IntPtr FbxCluster_GetLink(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_AddControlPointIndex___")] + public static extern void FbxCluster_AddControlPointIndex(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_GetControlPointIndicesCount___")] + public static extern int FbxCluster_GetControlPointIndicesCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_SetControlPointIWCount___")] + public static extern void FbxCluster_SetControlPointIWCount(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_SetTransformMatrix___")] + public static extern void FbxCluster_SetTransformMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_GetTransformMatrix___")] + public static extern global::System.IntPtr FbxCluster_GetTransformMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_SetTransformLinkMatrix___")] + public static extern void FbxCluster_SetTransformLinkMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_GetTransformLinkMatrix___")] + public static extern global::System.IntPtr FbxCluster_GetTransformLinkMatrix(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_GetControlPointIndexAt___")] + public static extern int FbxCluster_GetControlPointIndexAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_GetControlPointWeightAt___")] + public static extern double FbxCluster_GetControlPointWeightAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkin_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxSkin_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkin_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxSkin_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkin_AddCluster___")] + public static extern bool FbxSkin_AddCluster(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkin_GetCluster___")] + public static extern global::System.IntPtr FbxSkin_GetCluster(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxSkeleton_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxSkeleton_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_Reset___")] + public static extern void FbxSkeleton_Reset(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_SetSkeletonType___")] + public static extern void FbxSkeleton_SetSkeletonType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_GetSkeletonType___")] + public static extern int FbxSkeleton_GetSkeletonType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_GetSkeletonTypeIsSet___")] + public static extern bool FbxSkeleton_GetSkeletonTypeIsSet(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_GetSkeletonTypeDefaultValue___")] + public static extern int FbxSkeleton_GetSkeletonTypeDefaultValue(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_GetLimbLengthDefaultValue___")] + public static extern double FbxSkeleton_GetLimbLengthDefaultValue(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_GetLimbNodeSizeDefaultValue___")] + public static extern double FbxSkeleton_GetLimbNodeSizeDefaultValue(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_SetLimbNodeColor___")] + public static extern bool FbxSkeleton_SetLimbNodeColor(global::System.Runtime.InteropServices.HandleRef jarg1, FbxColor jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_GetLimbNodeColor___")] + public static extern FbxColor FbxSkeleton_GetLimbNodeColor(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_GetLimbNodeColorIsSet___")] + public static extern bool FbxSkeleton_GetLimbNodeColorIsSet(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_GetLimbNodeColorDefaultValue___")] + public static extern FbxColor FbxSkeleton_GetLimbNodeColorDefaultValue(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_IsSkeletonRoot___")] + public static extern bool FbxSkeleton_IsSkeletonRoot(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_sSize_get___")] + public static extern string FbxSkeleton_sSize_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_sLimbLength_get___")] + public static extern string FbxSkeleton_sLimbLength_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_sDefaultSize_get___")] + public static extern double FbxSkeleton_sDefaultSize_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_sDefaultLimbLength_get___")] + public static extern double FbxSkeleton_sDefaultLimbLength_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_Size_get___")] + public static extern global::System.IntPtr FbxSkeleton_Size_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_LimbLength_get___")] + public static extern global::System.IntPtr FbxSkeleton_LimbLength_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOPluginRegistry_FindWriterIDByDescription___")] + public static extern int FbxIOPluginRegistry_FindWriterIDByDescription(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimLayer_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxAnimLayer_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimLayer_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxAnimLayer_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimStack_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxAnimStack_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimStack_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxAnimStack_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimStack_Description_get___")] + public static extern global::System.IntPtr FbxAnimStack_Description_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimStack_GetLocalTimeSpan___")] + public static extern global::System.IntPtr FbxAnimStack_GetLocalTimeSpan(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimStack_SetLocalTimeSpan___")] + public static extern void FbxAnimStack_SetLocalTimeSpan(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveBase_KeyGetCount___")] + public static extern int FbxAnimCurveBase_KeyGetCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveBase_KeyGetTime___")] + public static extern global::System.IntPtr FbxAnimCurveBase_KeyGetTime(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveDef_sDEFAULT_WEIGHT_get___")] + public static extern float FbxAnimCurveDef_sDEFAULT_WEIGHT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveDef_sMIN_WEIGHT_get___")] + public static extern float FbxAnimCurveDef_sMIN_WEIGHT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveDef_sMAX_WEIGHT_get___")] + public static extern float FbxAnimCurveDef_sMAX_WEIGHT_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveDef_sDEFAULT_VELOCITY_get___")] + public static extern float FbxAnimCurveDef_sDEFAULT_VELOCITY_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_GetTangentMode__SWIG_0___")] + public static extern int FbxAnimCurveKey_GetTangentMode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_GetTangentMode__SWIG_1___")] + public static extern int FbxAnimCurveKey_GetTangentMode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetTangentMode___")] + public static extern void FbxAnimCurveKey_SetTangentMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_GetTangentWeightMode___")] + public static extern int FbxAnimCurveKey_GetTangentWeightMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetTangentWeightMode__SWIG_0___")] + public static extern void FbxAnimCurveKey_SetTangentWeightMode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetTangentWeightMode__SWIG_1___")] + public static extern void FbxAnimCurveKey_SetTangentWeightMode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetTangentWeightAndAdjustTangent___")] + public static extern void FbxAnimCurveKey_SetTangentWeightAndAdjustTangent(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_GetTangentVelocityMode___")] + public static extern int FbxAnimCurveKey_GetTangentVelocityMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetTangentVelocityMode__SWIG_0___")] + public static extern void FbxAnimCurveKey_SetTangentVelocityMode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetTangentVelocityMode__SWIG_1___")] + public static extern void FbxAnimCurveKey_SetTangentVelocityMode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_GetDataFloat___")] + public static extern float FbxAnimCurveKey_GetDataFloat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetDataFloat___")] + public static extern void FbxAnimCurveKey_SetDataFloat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetTangentVisibility___")] + public static extern void FbxAnimCurveKey_SetTangentVisibility(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_GetTangentVisibility___")] + public static extern int FbxAnimCurveKey_GetTangentVisibility(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_SetBreak___")] + public static extern void FbxAnimCurveKey_SetBreak(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveKey_GetBreak___")] + public static extern bool FbxAnimCurveKey_GetBreak(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_Create___")] + public static extern global::System.IntPtr FbxAnimCurve_Create(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeyModifyBegin___")] + public static extern void FbxAnimCurve_KeyModifyBegin(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeyModifyEnd___")] + public static extern void FbxAnimCurve_KeyModifyEnd(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeyAdd__SWIG_0___")] + public static extern int FbxAnimCurve_KeyAdd__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ref int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeyAdd__SWIG_1___")] + public static extern int FbxAnimCurve_KeyAdd__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_0___")] + public static extern void FbxAnimCurve_KeySet__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5, int jarg6, float jarg7, float jarg8, int jarg9, float jarg10, float jarg11, float jarg12, float jarg13); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_1___")] + public static extern void FbxAnimCurve_KeySet__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5, int jarg6, float jarg7, float jarg8, int jarg9, float jarg10, float jarg11, float jarg12); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_2___")] + public static extern void FbxAnimCurve_KeySet__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5, int jarg6, float jarg7, float jarg8, int jarg9, float jarg10, float jarg11); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_3___")] + public static extern void FbxAnimCurve_KeySet__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5, int jarg6, float jarg7, float jarg8, int jarg9, float jarg10); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_4___")] + public static extern void FbxAnimCurve_KeySet__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5, int jarg6, float jarg7, float jarg8, int jarg9); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_5___")] + public static extern void FbxAnimCurve_KeySet__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5, int jarg6, float jarg7, float jarg8); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_6___")] + public static extern void FbxAnimCurve_KeySet__SWIG_6(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5, int jarg6, float jarg7); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_7___")] + public static extern void FbxAnimCurve_KeySet__SWIG_7(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5, int jarg6); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_8___")] + public static extern void FbxAnimCurve_KeySet__SWIG_8(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4, int jarg5); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySet__SWIG_9___")] + public static extern void FbxAnimCurve_KeySet__SWIG_9(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeyGetTangentMode__SWIG_0___")] + public static extern int FbxAnimCurve_KeyGetTangentMode__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, bool jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeyGetTangentMode__SWIG_1___")] + public static extern int FbxAnimCurve_KeyGetTangentMode__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeySetTangentMode___")] + public static extern void FbxAnimCurve_KeySetTangentMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeyGet___")] + public static extern global::System.IntPtr FbxAnimCurve_KeyGet(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_KeyGetValue___")] + public static extern float FbxAnimCurve_KeyGetValue(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxAnimCurveFilterUnroll___")] + public static extern global::System.IntPtr new_FbxAnimCurveFilterUnroll(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxAnimCurveFilterUnroll___")] + public static extern void delete_FbxAnimCurveFilterUnroll(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveFilterUnroll_NeedApply__SWIG_0___")] + public static extern bool FbxAnimCurveFilterUnroll_NeedApply__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveFilterUnroll_NeedApply__SWIG_1___")] + public static extern bool FbxAnimCurveFilterUnroll_NeedApply__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveFilterUnroll_Apply__SWIG_0___")] + public static extern bool FbxAnimCurveFilterUnroll_Apply__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveFilterUnroll_Apply__SWIG_1___")] + public static extern bool FbxAnimCurveFilterUnroll_Apply__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveFilterUnroll_Reset___")] + public static extern void FbxAnimCurveFilterUnroll_Reset(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_TRANSFORM_get___")] + public static extern string FBXSDK_CURVENODE_TRANSFORM_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_TRANSLATION_get___")] + public static extern string FBXSDK_CURVENODE_TRANSLATION_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_ROTATION_get___")] + public static extern string FBXSDK_CURVENODE_ROTATION_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_SCALING_get___")] + public static extern string FBXSDK_CURVENODE_SCALING_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_COMPONENT_X_get___")] + public static extern string FBXSDK_CURVENODE_COMPONENT_X_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_COMPONENT_Y_get___")] + public static extern string FBXSDK_CURVENODE_COMPONENT_Y_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_COMPONENT_Z_get___")] + public static extern string FBXSDK_CURVENODE_COMPONENT_Z_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_COLOR_get___")] + public static extern string FBXSDK_CURVENODE_COLOR_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_COLOR_RED_get___")] + public static extern string FBXSDK_CURVENODE_COLOR_RED_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_COLOR_GREEN_get___")] + public static extern string FBXSDK_CURVENODE_COLOR_GREEN_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CURVENODE_COLOR_BLUE_get___")] + public static extern string FBXSDK_CURVENODE_COLOR_BLUE_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxAnimCurveNode_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxAnimCurveNode_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_IsAnimated__SWIG_0___")] + public static extern bool FbxAnimCurveNode_IsAnimated__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_IsAnimated__SWIG_1___")] + public static extern bool FbxAnimCurveNode_IsAnimated__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetAnimationInterval___")] + public static extern bool FbxAnimCurveNode_GetAnimationInterval(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_IsComposite___")] + public static extern bool FbxAnimCurveNode_IsComposite(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_CreateTypedCurveNode___")] + public static extern global::System.IntPtr FbxAnimCurveNode_CreateTypedCurveNode(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetChannelsCount___")] + public static extern uint FbxAnimCurveNode_GetChannelsCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetChannelIndex___")] + public static extern int FbxAnimCurveNode_GetChannelIndex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetChannelName___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxAnimCurveNode_GetChannelName(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_CreateCurve__SWIG_0___")] + public static extern global::System.IntPtr FbxAnimCurveNode_CreateCurve__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_CreateCurve__SWIG_1___")] + public static extern global::System.IntPtr FbxAnimCurveNode_CreateCurve__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, uint jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_CreateCurve__SWIG_2___")] + public static extern global::System.IntPtr FbxAnimCurveNode_CreateCurve__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetCurveCount__SWIG_0___")] + public static extern int FbxAnimCurveNode_GetCurveCount__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, string jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetCurveCount__SWIG_1___")] + public static extern int FbxAnimCurveNode_GetCurveCount__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetCurve__SWIG_0___")] + public static extern global::System.IntPtr FbxAnimCurveNode_GetCurve__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, uint jarg3, string jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetCurve__SWIG_1___")] + public static extern global::System.IntPtr FbxAnimCurveNode_GetCurve__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, uint jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetCurve__SWIG_2___")] + public static extern global::System.IntPtr FbxAnimCurveNode_GetCurve__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_AddChannel___")] + public static extern bool FbxAnimCurveNode_AddChannel(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_SetChannelValue__SWIG_2___")] + public static extern void FbxAnimCurveNode_SetChannelValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_SetChannelValue__SWIG_3___")] + public static extern void FbxAnimCurveNode_SetChannelValue__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetChannelValue__SWIG_2___")] + public static extern float FbxAnimCurveNode_GetChannelValue__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_GetChannelValue__SWIG_3___")] + public static extern float FbxAnimCurveNode_GetChannelValue__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxCamera_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxCamera_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_SetAspect___")] + public static extern void FbxCamera_SetAspect(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, double jarg3, double jarg4); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_GetAspectRatioMode___")] + public static extern int FbxCamera_GetAspectRatioMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_SetNearPlane___")] + public static extern void FbxCamera_SetNearPlane(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_GetNearPlane___")] + public static extern double FbxCamera_GetNearPlane(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_SetFarPlane___")] + public static extern void FbxCamera_SetFarPlane(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_GetFarPlane___")] + public static extern double FbxCamera_GetFarPlane(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_SetApertureMode___")] + public static extern void FbxCamera_SetApertureMode(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_GetApertureMode___")] + public static extern int FbxCamera_GetApertureMode(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_SetApertureWidth___")] + public static extern void FbxCamera_SetApertureWidth(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_GetApertureWidth___")] + public static extern double FbxCamera_GetApertureWidth(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_SetApertureHeight___")] + public static extern void FbxCamera_SetApertureHeight(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_GetApertureHeight___")] + public static extern double FbxCamera_GetApertureHeight(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_ComputeFocalLength___")] + public static extern double FbxCamera_ComputeFocalLength(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_AspectWidth_get___")] + public static extern global::System.IntPtr FbxCamera_AspectWidth_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_AspectHeight_get___")] + public static extern global::System.IntPtr FbxCamera_AspectHeight_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_GateFit_get___")] + public static extern global::System.IntPtr FbxCamera_GateFit_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_FieldOfView_get___")] + public static extern global::System.IntPtr FbxCamera_FieldOfView_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_FocalLength_get___")] + public static extern global::System.IntPtr FbxCamera_FocalLength_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_NearPlane_get___")] + public static extern global::System.IntPtr FbxCamera_NearPlane_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_FilmAspectRatio_get___")] + public static extern global::System.IntPtr FbxCamera_FilmAspectRatio_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_FilmOffsetX_get___")] + public static extern global::System.IntPtr FbxCamera_FilmOffsetX_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_FilmOffsetY_get___")] + public static extern global::System.IntPtr FbxCamera_FilmOffsetY_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_ProjectionType_get___")] + public static extern global::System.IntPtr FbxCamera_ProjectionType_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBXSDK_CAMERA_PERSPECTIVE_get___")] + public static extern string FBXSDK_CAMERA_PERSPECTIVE_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxMarker_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxMarker_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_Reset___")] + public static extern void FbxMarker_Reset(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_SetMarkerType___")] + public static extern void FbxMarker_SetMarkerType(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetMarkerType___")] + public static extern int FbxMarker_GetMarkerType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetDefaultOcclusion___")] + public static extern double FbxMarker_GetDefaultOcclusion(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_SetDefaultOcclusion___")] + public static extern void FbxMarker_SetDefaultOcclusion(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetDefaultIKReachTranslation___")] + public static extern double FbxMarker_GetDefaultIKReachTranslation(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_SetDefaultIKReachTranslation___")] + public static extern void FbxMarker_SetDefaultIKReachTranslation(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetDefaultIKReachRotation___")] + public static extern double FbxMarker_GetDefaultIKReachRotation(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_SetDefaultIKReachRotation___")] + public static extern void FbxMarker_SetDefaultIKReachRotation(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetDefaultIKPull___")] + public static extern double FbxMarker_GetDefaultIKPull(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_SetDefaultIKPull___")] + public static extern void FbxMarker_SetDefaultIKPull(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetDefaultIKPullHips___")] + public static extern double FbxMarker_GetDefaultIKPullHips(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_SetDefaultIKPullHips___")] + public static extern void FbxMarker_SetDefaultIKPullHips(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_Look_get___")] + public static extern global::System.IntPtr FbxMarker_Look_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_DrawLink_get___")] + public static extern global::System.IntPtr FbxMarker_DrawLink_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_Size_get___")] + public static extern global::System.IntPtr FbxMarker_Size_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_ShowLabel_get___")] + public static extern global::System.IntPtr FbxMarker_ShowLabel_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_IKPivot_get___")] + public static extern global::System.IntPtr FbxMarker_IKPivot_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetOcclusion___")] + public static extern global::System.IntPtr FbxMarker_GetOcclusion(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetIKReachTranslation___")] + public static extern global::System.IntPtr FbxMarker_GetIKReachTranslation(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetIKReachRotation___")] + public static extern global::System.IntPtr FbxMarker_GetIKReachRotation(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetIKPull___")] + public static extern global::System.IntPtr FbxMarker_GetIKPull(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_GetIKPullHips___")] + public static extern global::System.IntPtr FbxMarker_GetIKPullHips(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxLight_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxLight_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_SetShadowTexture___")] + public static extern void FbxLight_SetShadowTexture(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_GetShadowTexture___")] + public static extern global::System.IntPtr FbxLight_GetShadowTexture(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_LightType_get___")] + public static extern global::System.IntPtr FbxLight_LightType_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_CastLight_get___")] + public static extern global::System.IntPtr FbxLight_CastLight_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_DrawVolumetricLight_get___")] + public static extern global::System.IntPtr FbxLight_DrawVolumetricLight_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_DrawGroundProjection_get___")] + public static extern global::System.IntPtr FbxLight_DrawGroundProjection_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_DrawFrontFacingVolumetricLight_get___")] + public static extern global::System.IntPtr FbxLight_DrawFrontFacingVolumetricLight_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_Color_get___")] + public static extern global::System.IntPtr FbxLight_Color_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_Intensity_get___")] + public static extern global::System.IntPtr FbxLight_Intensity_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_InnerAngle_get___")] + public static extern global::System.IntPtr FbxLight_InnerAngle_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_OuterAngle_get___")] + public static extern global::System.IntPtr FbxLight_OuterAngle_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_Fog_get___")] + public static extern global::System.IntPtr FbxLight_Fog_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_DecayType_get___")] + public static extern global::System.IntPtr FbxLight_DecayType_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_DecayStart_get___")] + public static extern global::System.IntPtr FbxLight_DecayStart_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_FileName_get___")] + public static extern global::System.IntPtr FbxLight_FileName_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_EnableNearAttenuation_get___")] + public static extern global::System.IntPtr FbxLight_EnableNearAttenuation_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_NearAttenuationStart_get___")] + public static extern global::System.IntPtr FbxLight_NearAttenuationStart_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_NearAttenuationEnd_get___")] + public static extern global::System.IntPtr FbxLight_NearAttenuationEnd_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_EnableFarAttenuation_get___")] + public static extern global::System.IntPtr FbxLight_EnableFarAttenuation_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_FarAttenuationStart_get___")] + public static extern global::System.IntPtr FbxLight_FarAttenuationStart_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_FarAttenuationEnd_get___")] + public static extern global::System.IntPtr FbxLight_FarAttenuationEnd_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_CastShadows_get___")] + public static extern global::System.IntPtr FbxLight_CastShadows_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_ShadowColor_get___")] + public static extern global::System.IntPtr FbxLight_ShadowColor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_AreaLightShape_get___")] + public static extern global::System.IntPtr FbxLight_AreaLightShape_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_LeftBarnDoor_get___")] + public static extern global::System.IntPtr FbxLight_LeftBarnDoor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_RightBarnDoor_get___")] + public static extern global::System.IntPtr FbxLight_RightBarnDoor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_TopBarnDoor_get___")] + public static extern global::System.IntPtr FbxLight_TopBarnDoor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_BottomBarnDoor_get___")] + public static extern global::System.IntPtr FbxLight_BottomBarnDoor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_EnableBarnDoor_get___")] + public static extern global::System.IntPtr FbxLight_EnableBarnDoor_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxBlendShape_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxBlendShape_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_SetGeometry___")] + public static extern bool FbxBlendShape_SetGeometry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_GetGeometry___")] + public static extern global::System.IntPtr FbxBlendShape_GetGeometry(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_AddBlendShapeChannel___")] + public static extern bool FbxBlendShape_AddBlendShapeChannel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_RemoveBlendShapeChannel___")] + public static extern global::System.IntPtr FbxBlendShape_RemoveBlendShapeChannel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_GetBlendShapeChannelCount___")] + public static extern int FbxBlendShape_GetBlendShapeChannelCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_GetBlendShapeChannel___")] + public static extern global::System.IntPtr FbxBlendShape_GetBlendShapeChannel(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxBlendShapeChannel_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxBlendShapeChannel_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_DeformPercent_get___")] + public static extern global::System.IntPtr FbxBlendShapeChannel_DeformPercent_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_SetBlendShapeDeformer___")] + public static extern bool FbxBlendShapeChannel_SetBlendShapeDeformer(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_GetBlendShapeDeformer___")] + public static extern global::System.IntPtr FbxBlendShapeChannel_GetBlendShapeDeformer(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_AddTargetShape__SWIG_0___")] + public static extern bool FbxBlendShapeChannel_AddTargetShape__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_AddTargetShape__SWIG_1___")] + public static extern bool FbxBlendShapeChannel_AddTargetShape__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_RemoveTargetShape___")] + public static extern global::System.IntPtr FbxBlendShapeChannel_RemoveTargetShape(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_GetTargetShapeCount___")] + public static extern int FbxBlendShapeChannel_GetTargetShapeCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_GetTargetShape___")] + public static extern global::System.IntPtr FbxBlendShapeChannel_GetTargetShape(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_GetTargetShapeIndex___")] + public static extern int FbxBlendShapeChannel_GetTargetShapeIndex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxShape_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxShape_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxShape_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxShape_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBX_NO_SECTION_get___")] + public static extern int FBX_NO_SECTION_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBX_MAIN_SECTION_get___")] + public static extern int FBX_MAIN_SECTION_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FBX_EXTENSION_SECTION_0_get___")] + public static extern int FBX_EXTENSION_SECTION_0_get(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_new_FbxIOFileHeaderInfo___")] + public static extern global::System.IntPtr new_FbxIOFileHeaderInfo(); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_delete_FbxIOFileHeaderInfo___")] + public static extern void delete_FbxIOFileHeaderInfo(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOFileHeaderInfo_mFileVersion_get___")] + public static extern int FbxIOFileHeaderInfo_mFileVersion_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOFileHeaderInfo_mCreator_get___")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.LPStr)] + public static extern string FbxIOFileHeaderInfo_mCreator_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxConstraint_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxConstraint_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_Weight_get___")] + public static extern global::System.IntPtr FbxConstraint_Weight_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_Active_get___")] + public static extern global::System.IntPtr FbxConstraint_Active_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_Lock_get___")] + public static extern global::System.IntPtr FbxConstraint_Lock_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_GetConstraintType___")] + public static extern int FbxConstraint_GetConstraintType(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_GetConstrainedObject___")] + public static extern global::System.IntPtr FbxConstraint_GetConstrainedObject(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_GetConstraintSourceCount___")] + public static extern int FbxConstraint_GetConstraintSourceCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_GetConstraintSource___")] + public static extern global::System.IntPtr FbxConstraint_GetConstraintSource(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_GetSourceWeight___")] + public static extern double FbxConstraint_GetSourceWeight(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxConstraintAim_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxConstraintAim_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_RotationOffset_get___")] + public static extern global::System.IntPtr FbxConstraintAim_RotationOffset_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_WorldUpType_get___")] + public static extern global::System.IntPtr FbxConstraintAim_WorldUpType_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_WorldUpVector_get___")] + public static extern global::System.IntPtr FbxConstraintAim_WorldUpVector_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_UpVector_get___")] + public static extern global::System.IntPtr FbxConstraintAim_UpVector_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_AimVector_get___")] + public static extern global::System.IntPtr FbxConstraintAim_AimVector_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_AffectX_get___")] + public static extern global::System.IntPtr FbxConstraintAim_AffectX_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_AffectY_get___")] + public static extern global::System.IntPtr FbxConstraintAim_AffectY_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_AffectZ_get___")] + public static extern global::System.IntPtr FbxConstraintAim_AffectZ_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_AddConstraintSource__SWIG_0___")] + public static extern void FbxConstraintAim_AddConstraintSource__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_AddConstraintSource__SWIG_1___")] + public static extern void FbxConstraintAim_AddConstraintSource__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_SetConstrainedObject___")] + public static extern void FbxConstraintAim_SetConstrainedObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_SetWorldUpObject___")] + public static extern void FbxConstraintAim_SetWorldUpObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_GetWorldUpObject___")] + public static extern global::System.IntPtr FbxConstraintAim_GetWorldUpObject(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxConstraintParent_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxConstraintParent_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectTranslationX_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectTranslationX_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectTranslationY_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectTranslationY_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectTranslationZ_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectTranslationZ_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectRotationX_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectRotationX_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectRotationY_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectRotationY_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectRotationZ_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectRotationZ_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectScalingX_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectScalingX_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectScalingY_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectScalingY_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AffectScalingZ_get___")] + public static extern global::System.IntPtr FbxConstraintParent_AffectScalingZ_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_SetTranslationOffset___")] + public static extern void FbxConstraintParent_SetTranslationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_GetTranslationOffset___")] + public static extern FbxVector4 FbxConstraintParent_GetTranslationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_GetTranslationOffsetProperty___")] + public static extern global::System.IntPtr FbxConstraintParent_GetTranslationOffsetProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_SetRotationOffset___")] + public static extern void FbxConstraintParent_SetRotationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, FbxVector4 jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_GetRotationOffset___")] + public static extern FbxVector4 FbxConstraintParent_GetRotationOffset(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_GetRotationOffsetProperty___")] + public static extern global::System.IntPtr FbxConstraintParent_GetRotationOffsetProperty(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AddConstraintSource__SWIG_0___")] + public static extern void FbxConstraintParent_AddConstraintSource__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_AddConstraintSource__SWIG_1___")] + public static extern void FbxConstraintParent_AddConstraintSource__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_SetConstrainedObject___")] + public static extern void FbxConstraintParent_SetConstrainedObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxConstraintPosition_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxConstraintPosition_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_AffectX_get___")] + public static extern global::System.IntPtr FbxConstraintPosition_AffectX_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_AffectY_get___")] + public static extern global::System.IntPtr FbxConstraintPosition_AffectY_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_AffectZ_get___")] + public static extern global::System.IntPtr FbxConstraintPosition_AffectZ_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_Translation_get___")] + public static extern global::System.IntPtr FbxConstraintPosition_Translation_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_AddConstraintSource__SWIG_0___")] + public static extern void FbxConstraintPosition_AddConstraintSource__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_AddConstraintSource__SWIG_1___")] + public static extern void FbxConstraintPosition_AddConstraintSource__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_RemoveConstraintSource___")] + public static extern bool FbxConstraintPosition_RemoveConstraintSource(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_SetConstrainedObject___")] + public static extern void FbxConstraintPosition_SetConstrainedObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxConstraintRotation_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxConstraintRotation_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_AffectX_get___")] + public static extern global::System.IntPtr FbxConstraintRotation_AffectX_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_AffectY_get___")] + public static extern global::System.IntPtr FbxConstraintRotation_AffectY_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_AffectZ_get___")] + public static extern global::System.IntPtr FbxConstraintRotation_AffectZ_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_Rotation_get___")] + public static extern global::System.IntPtr FbxConstraintRotation_Rotation_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_AddConstraintSource__SWIG_0___")] + public static extern void FbxConstraintRotation_AddConstraintSource__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_AddConstraintSource__SWIG_1___")] + public static extern void FbxConstraintRotation_AddConstraintSource__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_SetConstrainedObject___")] + public static extern void FbxConstraintRotation_SetConstrainedObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_Create__SWIG_0___")] + public static extern global::System.IntPtr FbxConstraintScale_Create__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_Create__SWIG_1___")] + public static extern global::System.IntPtr FbxConstraintScale_Create__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_AffectX_get___")] + public static extern global::System.IntPtr FbxConstraintScale_AffectX_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_AffectY_get___")] + public static extern global::System.IntPtr FbxConstraintScale_AffectY_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_AffectZ_get___")] + public static extern global::System.IntPtr FbxConstraintScale_AffectZ_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_Scaling_get___")] + public static extern global::System.IntPtr FbxConstraintScale_Scaling_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_AddConstraintSource__SWIG_0___")] + public static extern void FbxConstraintScale_AddConstraintSource__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_AddConstraintSource__SWIG_1___")] + public static extern void FbxConstraintScale_AddConstraintSource__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_SetConstrainedObject___")] + public static extern void FbxConstraintScale_SetConstrainedObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyBool_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyBool_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyDouble_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyDouble3_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyDouble3_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyInt_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyInt_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyString_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyString_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyFloat_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyFloat_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEProjectionType_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyEProjectionType_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyELightType_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyELightType_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEAreaLightShape_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyEAreaLightShape_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEDecayType_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyEDecayType_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyMarkerELook_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyMarkerELook_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyNullELook_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyNullELook_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEInheritType_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyEInheritType_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEBlendMode_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyEBlendMode_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEWrapMode_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyEWrapMode_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEGateFit_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyEGateFit_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxVector4_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxVector4_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxVector2_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxVector2_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxColor_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxColor_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTemplateFbxSurfaceMaterial_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementTemplateFbxSurfaceMaterial_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateFbxSurfaceMaterial_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementArrayTemplateFbxSurfaceMaterial_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementNormal_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementNormal_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementBinormal_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementBinormal_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementTangent_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementTangent_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementMaterial_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementMaterial_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementUV_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementUV_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementVertexColor_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementVertexColor_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateFbxColor_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementArrayTemplateFbxColor_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateFbxVector2_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementArrayTemplateFbxVector2_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateFbxVector4_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementArrayTemplateFbxVector4_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerElementArrayTemplateInt_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerElementArrayTemplateInt_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMatrix_SWIGUpcast___")] + public static extern global::System.IntPtr FbxMatrix_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAMatrix_SWIGUpcast___")] + public static extern global::System.IntPtr FbxAMatrix_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxObject_SWIGUpcast___")] + public static extern global::System.IntPtr FbxObject_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCollection_SWIGUpcast___")] + public static extern global::System.IntPtr FbxCollection_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocumentInfo_SWIGUpcast___")] + public static extern global::System.IntPtr FbxDocumentInfo_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDocument_SWIGUpcast___")] + public static extern global::System.IntPtr FbxDocument_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxScene_SWIGUpcast___")] + public static extern global::System.IntPtr FbxScene_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOBase_SWIGUpcast___")] + public static extern global::System.IntPtr FbxIOBase_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxExporter_SWIGUpcast___")] + public static extern global::System.IntPtr FbxExporter_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImporter_SWIGUpcast___")] + public static extern global::System.IntPtr FbxImporter_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxIOSettings_SWIGUpcast___")] + public static extern global::System.IntPtr FbxIOSettings_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNode_SWIGUpcast___")] + public static extern global::System.IntPtr FbxNode_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNodeAttribute_SWIGUpcast___")] + public static extern global::System.IntPtr FbxNodeAttribute_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNull_SWIGUpcast___")] + public static extern global::System.IntPtr FbxNull_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLayerContainer_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLayerContainer_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometryBase_SWIGUpcast___")] + public static extern global::System.IntPtr FbxGeometryBase_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGeometry_SWIGUpcast___")] + public static extern global::System.IntPtr FbxGeometry_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMesh_SWIGUpcast___")] + public static extern global::System.IntPtr FbxMesh_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxNurbsCurve_SWIGUpcast___")] + public static extern global::System.IntPtr FbxNurbsCurve_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxGlobalSettings_SWIGUpcast___")] + public static extern global::System.IntPtr FbxGlobalSettings_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxImplementation_SWIGUpcast___")] + public static extern global::System.IntPtr FbxImplementation_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceMaterial_SWIGUpcast___")] + public static extern global::System.IntPtr FbxSurfaceMaterial_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfaceLambert_SWIGUpcast___")] + public static extern global::System.IntPtr FbxSurfaceLambert_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSurfacePhong_SWIGUpcast___")] + public static extern global::System.IntPtr FbxSurfacePhong_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxTexture_SWIGUpcast___")] + public static extern global::System.IntPtr FbxTexture_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxFileTexture_SWIGUpcast___")] + public static extern global::System.IntPtr FbxFileTexture_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBindingTableBase_SWIGUpcast___")] + public static extern global::System.IntPtr FbxBindingTableBase_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBindingTable_SWIGUpcast___")] + public static extern global::System.IntPtr FbxBindingTable_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPropertyEntryView_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPropertyEntryView_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSemanticEntryView_SWIGUpcast___")] + public static extern global::System.IntPtr FbxSemanticEntryView_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxPose_SWIGUpcast___")] + public static extern global::System.IntPtr FbxPose_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxDeformer_SWIGUpcast___")] + public static extern global::System.IntPtr FbxDeformer_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSubDeformer_SWIGUpcast___")] + public static extern global::System.IntPtr FbxSubDeformer_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCluster_SWIGUpcast___")] + public static extern global::System.IntPtr FbxCluster_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkin_SWIGUpcast___")] + public static extern global::System.IntPtr FbxSkin_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxSkeleton_SWIGUpcast___")] + public static extern global::System.IntPtr FbxSkeleton_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimLayer_SWIGUpcast___")] + public static extern global::System.IntPtr FbxAnimLayer_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimStack_SWIGUpcast___")] + public static extern global::System.IntPtr FbxAnimStack_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveBase_SWIGUpcast___")] + public static extern global::System.IntPtr FbxAnimCurveBase_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurve_SWIGUpcast___")] + public static extern global::System.IntPtr FbxAnimCurve_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxAnimCurveNode_SWIGUpcast___")] + public static extern global::System.IntPtr FbxAnimCurveNode_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxCamera_SWIGUpcast___")] + public static extern global::System.IntPtr FbxCamera_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxMarker_SWIGUpcast___")] + public static extern global::System.IntPtr FbxMarker_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxLight_SWIGUpcast___")] + public static extern global::System.IntPtr FbxLight_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShape_SWIGUpcast___")] + public static extern global::System.IntPtr FbxBlendShape_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxBlendShapeChannel_SWIGUpcast___")] + public static extern global::System.IntPtr FbxBlendShapeChannel_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxShape_SWIGUpcast___")] + public static extern global::System.IntPtr FbxShape_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraint_SWIGUpcast___")] + public static extern global::System.IntPtr FbxConstraint_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintAim_SWIGUpcast___")] + public static extern global::System.IntPtr FbxConstraintAim_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintParent_SWIGUpcast___")] + public static extern global::System.IntPtr FbxConstraintParent_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintPosition_SWIGUpcast___")] + public static extern global::System.IntPtr FbxConstraintPosition_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintRotation_SWIGUpcast___")] + public static extern global::System.IntPtr FbxConstraintRotation_SWIGUpcast(global::System.IntPtr jarg1); + + [global::System.Runtime.InteropServices.DllImport(DllImportName, EntryPoint="CSharp_AutodeskfFbx_FbxConstraintScale_SWIGUpcast___")] + public static extern global::System.IntPtr FbxConstraintScale_SWIGUpcast(global::System.IntPtr jarg1); +} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/NativeMethods.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/NativeMethods.cs.meta new file mode 100644 index 0000000000..b3ced14142 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/NativeMethods.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5228431bfa692c9499831ee256ee935b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/SWIGTYPE_EFbxQuatInterpMode.cs b/Packages/com.autodesk.fbx/Runtime/Scripts/SWIGTYPE_EFbxQuatInterpMode.cs new file mode 100644 index 0000000000..ce748f23f0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/SWIGTYPE_EFbxQuatInterpMode.cs @@ -0,0 +1,18 @@ +#if UNITY_EDITOR || FBXSDK_RUNTIME +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace Autodesk.Fbx { + +public enum SWIGTYPE_EFbxQuatInterpMode {} + +} + +#endif // UNITY_EDITOR || FBXSDK_RUNTIME \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Runtime/Scripts/SWIGTYPE_EFbxQuatInterpMode.cs.meta b/Packages/com.autodesk.fbx/Runtime/Scripts/SWIGTYPE_EFbxQuatInterpMode.cs.meta new file mode 100644 index 0000000000..6975ea66b4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Runtime/Scripts/SWIGTYPE_EFbxQuatInterpMode.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d645622de5c18b447997dff9fd6dd6a6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests.meta b/Packages/com.autodesk.fbx/Tests.meta new file mode 100644 index 0000000000..03af615a0a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 933980e0e7ba4ef4ba22a9407a36143e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor.meta b/Packages/com.autodesk.fbx/Tests/Editor.meta new file mode 100644 index 0000000000..155e9bd03b --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 24565eab08147024a8bda6e271df4788 +folderAsset: yes +timeCreated: 1490808959 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/BuildTests.meta b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests.meta new file mode 100644 index 0000000000..21d24f9e29 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9358d9a1a079c4d489c4b5188979a0a3 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/BuildTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/BuildTest.cs new file mode 100644 index 0000000000..a36813a853 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/BuildTest.cs @@ -0,0 +1,251 @@ +using System.Collections; +using UnityEngine; +using UnityEditor; +using NUnit.Framework; +using UnityEditor.Build.Reporting; +using System.IO; +using UnityEngine.TestTools; +using System.Diagnostics; + +namespace Autodesk.Fbx.BuildTests +{ + internal class BuildTest + { + private const string k_fbxsdkNativePlugin = "UnityFbxSdkNative"; + private const string k_autodeskFbxDll = "Autodesk.Fbx.dll"; + +#if UNITY_EDITOR_WIN + private const string k_fbxsdkNativePluginExt = ".dll"; + private const string k_buildPluginPath = "{0}_Data"; + private const BuildTarget k_buildTarget = BuildTarget.StandaloneWindows64; + private const string k_autodeskDllInstallPath = "Managed"; +#elif UNITY_EDITOR_OSX + private const string k_fbxsdkNativePluginExt = ".bundle"; + private const string k_buildPluginPath = "{0}.app/Contents"; + private const BuildTarget k_buildTarget = BuildTarget.StandaloneOSX; + private const string k_autodeskDllInstallPath = "Resources/Data/Managed"; +#else // UNITY_EDITOR_LINUX + private const string k_fbxsdkNativePluginExt = ".so"; + private const string k_buildPluginPath = "{0}_Data"; + private const BuildTarget k_buildTarget = BuildTarget.StandaloneLinux64; + private const string k_autodeskDllInstallPath = "Managed"; +#endif + private const BuildTargetGroup k_buildTargetGroup = BuildTargetGroup.Standalone; + + private const string k_buildTestScene = "Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/BuildTestScene.unity"; + + private const string k_createdFbx = "emptySceneFromRuntimeBuild.fbx"; + + private const string k_runningBuildSymbol = "FBX_RUNNING_BUILD_TEST"; + +#if UNITY_EDITOR_LINUX + private const string k_buildName = "test.x86_64"; +#else + private const string k_buildName = "test.exe"; +#endif + + private string BuildFolder { get { return Path.Combine(Path.GetDirectoryName(Application.dataPath), "_safe_to_delete_build"); } } + + public static IEnumerable RuntimeFbxSdkTestData + { + get + { + yield return new TestCaseData( + new string[] { k_runningBuildSymbol }, + false, + ScriptingImplementation.Mono2x + ).SetName("FbxSdkNotIncludedAtRuntime_Mono").Returns(null); + yield return new TestCaseData( + new string[] { k_runningBuildSymbol, "FBXSDK_RUNTIME" }, + true, + ScriptingImplementation.Mono2x + ).SetName("FbxSdkIncludedAtRuntime_Mono").Returns(null); +#if !UNITY_EDITOR_LINUX || UNITY_2019_3_OR_NEWER + yield return new TestCaseData( + new string[] { k_runningBuildSymbol }, + false, + ScriptingImplementation.IL2CPP + ).SetName("FbxSdkNotIncludedAtRuntime_IL2CPP").Returns(null); + yield return new TestCaseData( + new string[] { k_runningBuildSymbol, "FBXSDK_RUNTIME" }, + true, + ScriptingImplementation.IL2CPP + ).SetName("FbxSdkIncludedAtRuntime_IL2CPP").Returns(null); +#endif // !UNITY_EDITOR_LINUX || UNITY_2019_3_OR_NEWER + } + } + + [SetUp] + public void Init() + { + // Create build folder + Directory.CreateDirectory(BuildFolder); + } + + [TearDown] + public void Term() + { + // reset the scripting define symbols + var symbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(k_buildTargetGroup); + // remove the running build symbol and everything after it + var result = symbols.Split(new string[] { k_runningBuildSymbol, ";" + k_runningBuildSymbol }, System.StringSplitOptions.None); + PlayerSettings.SetScriptingDefineSymbolsForGroup(k_buildTargetGroup, result[0]); + + // set scripting backend back to default (Mono) + PlayerSettings.SetScriptingBackend(k_buildTargetGroup, ScriptingImplementation.Mono2x); + + // delete build folder + if (Directory.Exists(BuildFolder)) + { + Directory.Delete(BuildFolder, recursive: true); + } + } + + private BuildReport BuildPlayer() + { + BuildPlayerOptions options = new BuildPlayerOptions(); + options.locationPathName = Path.Combine(BuildFolder, k_buildName); + options.target = k_buildTarget; + options.targetGroup = k_buildTargetGroup; + options.scenes = new string[] { k_buildTestScene }; + + var report = BuildPipeline.BuildPlayer(options); + + Assert.That(report.summary.result, Is.EqualTo(BuildResult.Succeeded)); + + return report; + } + + private void AddDefineSymbols(string[] toAdd) + { + if (toAdd.Length <= 0) + { + return; + } + + var symbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(k_buildTargetGroup); + if (!string.IsNullOrEmpty(symbols)) + { + symbols += ";"; + } + + symbols += toAdd[0]; + for (int i = 1; i < toAdd.Length; i++) + { + symbols += ";" + toAdd[i]; + } + PlayerSettings.SetScriptingDefineSymbolsForGroup(k_buildTargetGroup, symbols); + } + + [Ignore("Ignoring in CI because we don't control which backends are installed")] + [UnityTest] + [TestCaseSource("RuntimeFbxSdkTestData")] + public IEnumerator TestFbxSdkAtRuntime(string[] defineSymbols, bool dllExists, ScriptingImplementation scriptingImplementation) + { + PlayerSettings.SetScriptingBackend(k_buildTargetGroup, scriptingImplementation); + AddDefineSymbols(defineSymbols); + + // start and stop playmode to force a domain reload + Assert.False(Application.isPlaying); + yield return new EnterPlayMode(); + Assert.True(Application.isPlaying); + yield return new ExitPlayMode(); + Assert.False(Application.isPlaying); + + var report = BuildPlayer(); + + // check whether the plugins were copied + var buildPathWithoutExt = Path.ChangeExtension(report.summary.outputPath, null); + var buildPluginFullPath = Path.Combine( + string.Format(k_buildPluginPath, buildPathWithoutExt), + "Plugins", +#if UNITY_EDITOR_LINUX + "x86_64", +#endif + k_fbxsdkNativePlugin + k_fbxsdkNativePluginExt + ); + + NUnit.Framework.Constraints.Constraint constraint = Does.Not.Exist; + if (dllExists) + { + constraint = Does.Exist; + } + Assert.That(buildPluginFullPath, constraint); + + // Autodesk.Fbx.dll will not exist if building with IL2CPP + if(scriptingImplementation != ScriptingImplementation.IL2CPP) + { + // check the size of Autodesk.Fbx.dll + var autodeskDllFullPath = Path.Combine( + string.Format(k_buildPluginPath, buildPathWithoutExt), + k_autodeskDllInstallPath, + k_autodeskFbxDll + ); + Assert.That(autodeskDllFullPath, Does.Exist); + var fileInfo = new FileInfo(autodeskDllFullPath); + + // If the FBX SDK is copied over at runtime, the DLL filesize will + // be ~350,000. If it isn't copied over it will be ~3500. + // Putting the expected size as 10000 to allow for some buffer room. + var expectedDllFileSize = 10000; + if (dllExists) + { + Assert.That(fileInfo.Length, Is.GreaterThan(expectedDllFileSize)); + } + else + { + Assert.That(fileInfo.Length, Is.LessThan(expectedDllFileSize)); + } + } + + var buildPath = report.summary.outputPath; + +#if UNITY_EDITOR_OSX + buildPath = Path.ChangeExtension(buildPath, "app"); + buildPath = Path.Combine(buildPath, "Contents", "MacOS"); + // on Unity 2018.4, the path to the executable is: + // test.app/Contents/MacOS/test + // whereas in later versions, the path is: + // test.app/Contents/MacOS/{product_name} + #if UNITY_2018_4 + buildPath = Path.Combine(buildPath, Path.GetFileNameWithoutExtension(k_buildName)); + #else // UNITY_2018_4 + buildPath = Path.Combine(buildPath, Application.productName); + #endif // UNITY_2018_4 +#endif // UNITY_EDITOR_OSX + + Process p = new Process(); + p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; + p.StartInfo.FileName = buildPath; + p.StartInfo.Arguments = "-batchmode -nographics"; + p.StartInfo.UseShellExecute = true; + p.Start(); + + // Wait for 10 seconds for application to run. + // If it doesn't finish by then something has probably + // gone wrong, like the export script gave an error or wasn't + // included in the build. + bool hasExited = p.WaitForExit(10000); + if (!hasExited) + { + p.Kill(); + Assert.Fail(string.Format("Process running {0} timed out", buildPath)); + } + + // Check that the FBX was created + var buildPluginFbxPath = Path.Combine( + string.Format(k_buildPluginPath, buildPathWithoutExt), + k_createdFbx + ); + + // Make sure the constraint is still set properly. + // The constraint resets between this check and the previous. + constraint = Does.Not.Exist; + if (dllExists) + { + constraint = Does.Exist; + } + Assert.That(buildPluginFbxPath, constraint); + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/BuildTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/BuildTest.cs.meta new file mode 100644 index 0000000000..4d1209043a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/BuildTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 339122da0e251a14ea3d617efd1d5d86 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/FbxBuildTest.asmdef b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/FbxBuildTest.asmdef new file mode 100644 index 0000000000..d514ff4b61 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/FbxBuildTest.asmdef @@ -0,0 +1,18 @@ +{ + "name": "FbxBuildTests", + "references": [ + "Autodesk.Fbx" + ], + "includePlatforms": [ + "Editor" + ], + "optionalUnityReferences": [ + "TestAssemblies" + ], + "defineConstraints": [ + "!UNITY_EDITOR_LINUX" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/FbxBuildTest.asmdef.meta b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/FbxBuildTest.asmdef.meta new file mode 100644 index 0000000000..7f001cf5b5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/BuildTests/FbxBuildTest.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3a17ae6100167264ca690fccd8b45b30 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests.meta b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests.meta new file mode 100644 index 0000000000..ff72401d16 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8b3d804af0f4545cfbf06ea1303f993a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.asmdef b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.asmdef new file mode 100644 index 0000000000..be90ac5bf9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.asmdef @@ -0,0 +1,16 @@ +{ + "name": "FbxLinuxTest", + "references": [ + "Autodesk.Fbx" + ], + "includePlatforms": [ + "Editor" + ], + "optionalUnityReferences": [ + "TestAssemblies" + ], + "defineConstraints": [ + "UNITY_EDITOR_LINUX" + ], + "allowUnsafeCode": false +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.asmdef.meta b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.asmdef.meta new file mode 100644 index 0000000000..bf3fb41028 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 284a1dd56be7c47cb899b2e30abbcbf3 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.cs new file mode 100644 index 0000000000..442cb3888a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.cs @@ -0,0 +1,28 @@ +// *********************************************************************** +// Copyright (c) 2021 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using Autodesk.Fbx; +using System.IO; +using System.Collections.Generic; + +namespace Autodesk.Fbx.LinuxTest +{ + /// + /// On linux, in v4.0.1, we temporarily have no tests because of an issue + /// with the CI machines not having libstdc++ required for FBX SDK. + /// + /// But we need at least one test. So here goes. + /// + internal class EmptyTest + { + [Test] + public static void Pass() + { + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.cs.meta new file mode 100644 index 0000000000..ad39f8647c --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/LinuxTests/LinuxTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 182e1a4b3ae7442339cad86b3af27d6e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests.meta b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests.meta new file mode 100644 index 0000000000..20a0d01569 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 70c4134fa621ef44cb77b913306fc213 +folderAsset: yes +timeCreated: 1490898701 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.asmdef b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.asmdef new file mode 100644 index 0000000000..def65b4bcc --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.asmdef @@ -0,0 +1,15 @@ +{ + "name": "PerformanceTests", + "references": [ + "Autodesk.Fbx" + ], + "includePlatforms": [ + "Editor" + ], + "optionalUnityReferences": [ + "TestAssemblies" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.asmdef.meta b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.asmdef.meta new file mode 100644 index 0000000000..880472c505 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 6b7e23554381c104da72bd3a844740af +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.cs new file mode 100644 index 0000000000..ae21314330 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.cs @@ -0,0 +1,257 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Diagnostics; +using System.Text; +using System.IO; +using System.Collections.Generic; +using System; +using UnityEditorInternal; + +namespace Autodesk.Fbx.PerformanceTests +{ + [TestFixture] + internal class PerformanceTest + { + protected string exeFileName { + get { +#if UNITY_EDITOR_WIN + return Path.GetFullPath("Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-win-x64.exe"); +#elif UNITY_EDITOR_OSX + return Path.GetFullPath("Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-mac-x64"); +#elif UNITY_EDITOR_LINUX + return Path.GetFullPath("Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-linux-x64"); +#else + throw new NotImplementedException(); +#endif + } + } + + protected void LogError (string msg) + { +#if UNITY_EDITOR + UnityEngine.Debug.LogError (msg); +#endif + } + + + [System.Serializable] + public class ResultJsonList + { + public List tests; + } + + [System.Serializable] + public class ResultJson + { + public string testName; + public double result; + public bool success; + public string error = ""; + } + + private ResultJson RunCppTest (string testName) + { + // run native C++ tests here + get results to compare against + // In Windows, the exe has to be in the same folder as the fbxsdk library in order to run + + Process cpp = new Process (); + cpp.StartInfo.FileName = this.exeFileName; + cpp.StartInfo.Arguments = testName; + cpp.StartInfo.RedirectStandardOutput = true; + cpp.StartInfo.UseShellExecute = false; + cpp.Start (); + + // TODO: fix mono warning about compatibility with .NET + StringBuilder output = new StringBuilder (); + while (!cpp.HasExited) { + output.Append (cpp.StandardOutput.ReadToEnd ()); + } + + try { +#if UNITY_EDITOR + ResultJsonList cppJson = UnityEngine.JsonUtility.FromJson (output.ToString ()); +#else + var cppJson = null; + throw new NotImplementedException(); +#endif + if(cppJson == null){ + this.LogError("CppError [" + testName + "]:" + output); + return null; + } + + if (cppJson.tests.Count <= 0) { + this.LogError ("Error: No json test results received"); + return null; + } + + var cppResult = cppJson.tests [0]; + Assert.IsNotNull (cppResult); + Assert.IsTrue (cppResult.success); + + if (!String.IsNullOrEmpty (cppResult.error)) { + this.LogError ("CppError [" + testName + "]: " + cppResult.error); + } + + return cppResult; + + } catch (System.ArgumentException) { + this.LogError ("Error [" + testName + "]: Malformed json string: " + output); + return null; + } + } + + private FbxManager m_fbxManager; + private Stopwatch m_stopwatch; + + [SetUp] + public void Init() + { + m_stopwatch = new Stopwatch (); + m_fbxManager = FbxManager.Create (); + } + + [TearDown] + public void Term() + { + m_fbxManager.Destroy (); + } + + private void CheckAgainstNative (string testName, double managedResult, int sampleSize, int threshold) + { + // Check against Native C++ tests + var cppResult = RunCppTest (testName + ":" + sampleSize); + + Assert.IsNotNull (cppResult); + + LogResult (testName, cppResult.result, managedResult, threshold, sampleSize); + + // Ex: test that the unity test is no more than 4 times slower + Assert.LessOrEqual (managedResult, threshold * cppResult.result); + } + + // function to run for the test + private delegate void TestFunc(); + + /* + * Default function for running a block of code a bunch of times. + */ + private void DefaultTest(string testName, int sampleSize, int threshold, TestFunc codeToExecute) + { + long total = 0; + + m_stopwatch.Reset (); + m_stopwatch.Start (); + + codeToExecute (); + + m_stopwatch.Stop (); + total = m_stopwatch.ElapsedMilliseconds; + + CheckAgainstNative (testName, total, sampleSize, threshold); + } + + [Test] + public void FbxObjectCreateTest () + { + int N = 5000; + DefaultTest ( + "FbxObjectCreate", + N, + 10, + () => { + for (int i = 0; i < N; i++) { + FbxObject.Create (m_fbxManager, ""); + } + } + ); + } + + [Test] + public void SetControlPointAtTest() + { + int N = 1000000; + DefaultTest ( + "SetControlPointAt", + N, + 40, + () => { + FbxGeometryBase geometryBase = FbxGeometryBase.Create(m_fbxManager, ""); + geometryBase.InitControlPoints(1); + for(int i = 0; i < N; i ++){ + FbxVector4 vector = new FbxVector4(0,0,0); + geometryBase.SetControlPointAt(vector, 0); + } + } + ); + } + + [Test] + public void EmptyExportImportTest () + { + int N = 10; + long total = 0; + + for (int i = 0; i < N; i++) { + m_stopwatch.Reset (); + m_stopwatch.Start (); + + FbxIOSettings ioSettings = FbxIOSettings.Create (m_fbxManager, Globals.IOSROOT); + m_fbxManager.SetIOSettings (ioSettings); + + FbxExporter exporter = FbxExporter.Create (m_fbxManager, ""); + + string filename = "test.fbx"; + + bool exportStatus = exporter.Initialize (filename, -1, m_fbxManager.GetIOSettings ()); + + // Check that export status is True + Assert.IsTrue (exportStatus); + + // Create an empty scene to export + FbxScene scene = FbxScene.Create (m_fbxManager, "myScene"); + + // Export the scene to the file. + exporter.Export (scene); + + exporter.Destroy (); + + // Import to make sure file is valid + + FbxImporter importer = FbxImporter.Create (m_fbxManager, ""); + + bool importStatus = importer.Initialize (filename, -1, m_fbxManager.GetIOSettings ()); + + Assert.IsTrue (importStatus); + + // Create a new scene so it can be populated + FbxScene newScene = FbxScene.Create (m_fbxManager, "myScene2"); + + importer.Import (newScene); + + importer.Destroy (); + + m_stopwatch.Stop (); + + total += m_stopwatch.ElapsedMilliseconds; + + // Delete the file once the test is complete + File.Delete (filename); + } + + CheckAgainstNative ("EmptyExportImport", total / (float)N, N, 4); + } + + private void LogResult(string testName, double native, double managed, int n, int sampleSize){ + UnityEngine.Debug.Log ( + String.Format ("Test [{0}]: Managed must run at most {1} times slower than native to pass. (Native = {2} ms, Managed = {3} ms, SampleSize = {4}, UnityVersion = {5})", + testName, n, native, managed, sampleSize, InternalEditorUtility.GetFullUnityVersion()) + ); + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.cs.meta new file mode 100644 index 0000000000..103d856c51 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PerformanceTests/PerformanceTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 93e92e32d669a425bbcfcd7420aa5884 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests.meta b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests.meta new file mode 100644 index 0000000000..100a6f3226 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4be566858b5274a95b8c1b72aced8adf +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/FbxExporterTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/FbxExporterTest.cs new file mode 100644 index 0000000000..b13c48d4b4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/FbxExporterTest.cs @@ -0,0 +1,76 @@ +using UnityEngine; +using UnityEngine.TestTools; +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; +using System.IO; + +namespace Autodesk.Fbx.PlayModeTests +{ + internal class FbxExporterTest { + [Test] + public void TestWriteEmptyFbxFile() { + /* + Runtime test that writes an fbx scene file in the directory where the + player is (temp folder while running tests) + */ + + // Build the fbx scene file path + // (player/player_data/emptySceneFromRuntime.fbx) + string fbxFilePath = Application.dataPath; + fbxFilePath = Path.Combine(fbxFilePath, "emptySceneFromRuntime.fbx"); + + // The file should not exist. We are running the test from the Test + // Runner, which should always create a new player with its own fresh + // data directory + FileInfo fbxFileInfo = new FileInfo(fbxFilePath); + Assert.That(!fbxFileInfo.Exists, string.Format("\"{0}\" already exists but the test did not create it yet", fbxFilePath)); + + using (var fbxManager = FbxManager.Create()) + { + FbxIOSettings fbxIOSettings = FbxIOSettings.Create(fbxManager, Globals.IOSROOT); + + // Configure the IO settings. + fbxManager.SetIOSettings(fbxIOSettings); + + // Create the exporter + var fbxExporter = FbxExporter.Create(fbxManager, "Exporter"); + + // Initialize the exporter. + int fileFormat = fbxManager.GetIOPluginRegistry().FindWriterIDByDescription("FBX ascii (*.fbx)"); + bool status = fbxExporter.Initialize(fbxFilePath, fileFormat, fbxIOSettings); + + Assert.That( status, string.Format("failed to initialize exporter, reason:D {0}", + fbxExporter.GetStatus().GetErrorString())); + // Create a scene + var fbxScene = FbxScene.Create(fbxManager, "Scene"); + + // create scene info + FbxDocumentInfo fbxSceneInfo = FbxDocumentInfo.Create(fbxManager, "SceneInfo"); + + // set some scene info values + fbxSceneInfo.mTitle = "emptySceneFromRuntime"; + fbxSceneInfo.mSubject = "Exported from a Unity runtime while testing in play mode"; + fbxSceneInfo.mAuthor = "Unity Technologies"; + fbxSceneInfo.mRevision = "1.0"; + fbxSceneInfo.mKeywords = "export fbx runtime player play mode"; + fbxSceneInfo.mComment = "This is to test the capability of exporting from a Unity runtime, using the FBX SDK C# bindings"; + + fbxScene.SetSceneInfo(fbxSceneInfo); + + // Export the scene to the file. + status = fbxExporter.Export(fbxScene); + Assert.That( status, string.Format("Failed to export scene, reason: {0}", + fbxExporter.GetStatus().GetErrorString())); + + // cleanup + fbxScene.Destroy(); + fbxExporter.Destroy(); + } + + // Test that the file exists + fbxFileInfo = new FileInfo(fbxFilePath); + Assert.That(fbxFileInfo.Exists, string.Format("\"{0}\" was not created", fbxFilePath)); + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/FbxExporterTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/FbxExporterTest.cs.meta new file mode 100644 index 0000000000..6394cd1a3a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/FbxExporterTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c8e331e3057754579b5711b9f9751215 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/PlayModeTests.asmdef b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/PlayModeTests.asmdef new file mode 100644 index 0000000000..9efd22056c --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/PlayModeTests.asmdef @@ -0,0 +1,16 @@ +{ + "name": "PlayModeTests", + "references": [ + "Autodesk.Fbx" + ], + "optionalUnityReferences": [ + "TestAssemblies" + ], + "includePlatforms": [], + "excludePlatforms": [], + "defineConstraints": [ + "!FBX_RUNNING_BUILD_TEST", + "!UNITY_EDITOR_LINUX" + ], + "allowUnsafeCode": false +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/PlayModeTests.asmdef.meta b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/PlayModeTests.asmdef.meta new file mode 100644 index 0000000000..7214cb5a1e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/PlayModeTests/PlayModeTests.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 82fae8409614149ecbd87b72104dc8d1 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests.meta new file mode 100644 index 0000000000..c237930e3a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 0575455bab38d06458b2e2fe90986fa2 +folderAsset: yes +timeCreated: 1490808974 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Base.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Base.cs new file mode 100644 index 0000000000..907f62a15e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Base.cs @@ -0,0 +1,397 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal abstract class Base : TestBase where T: Autodesk.Fbx.FbxObject + { + // T.Create(FbxManager, string) + static System.Reflection.MethodInfo s_createFromMgrAndName; + + // T.Create(FbxObject, string) + static System.Reflection.MethodInfo s_createFromObjAndName; + + static Base() { + s_createFromMgrAndName = typeof(T).GetMethod("Create", new System.Type[] {typeof(FbxManager), typeof(string)}); + s_createFromObjAndName = typeof(T).GetMethod("Create", new System.Type[] {typeof(FbxObject), typeof(string)}); + } + + + protected FbxManager Manager { + get; + private set; + } + + /* Create an object with the default manager. */ + public T CreateObject (string name = "") { + return CreateObject(Manager, name); + } + + /* Test all the equality functions we can find. */ + [Test] + public virtual void TestEquality() { + var a = CreateObject("a"); + var b = CreateObject("b"); + var acopy = a; // TODO: get a different proxy to the same underlying object + EqualityTester.TestEquality(a, b, acopy); + } + + /* Create an object with another manager. Default implementation uses + * reflection to call T.Create(...); override if reflection is wrong. */ + public virtual T CreateObject (FbxManager mgr, string name = "") { + return Invoker.InvokeStatic(s_createFromMgrAndName, mgr, name); + } + + /* Create an object with an object as container. Default implementation uses + * reflection to call T.Create(...); override if reflection is wrong. */ + public virtual T CreateObject (FbxObject container, string name = "") { + return Invoker.InvokeStatic(s_createFromObjAndName, container, name); + } + + [SetUp] + public virtual void Init () + { + Manager = FbxManager.Create (); + } + + [TearDown] + public virtual void Term () + { + try { + Manager.Destroy (); + } + catch (System.ArgumentNullException) { + } + } + + /// + /// Test that an object created within a scene knows its scene. + /// Override for objects that can't be in a scene. + /// + protected virtual void TestSceneContainer() + { + using(var scene = FbxScene.Create(Manager, "thescene")) { + var obj = CreateObject(scene, "scene_object"); + Assert.AreEqual(scene, obj.GetScene()); + var child = CreateObject(obj, "scene_object_child"); + Assert.AreEqual(scene, child.GetScene()); + } + + { + var obj = CreateObject(Manager, "not_scene_object"); + Assert.AreEqual(null, obj.GetScene()); + } + } + + [Test] + public virtual void TestCreate() + { + var obj = CreateObject("MyObject"); + Assert.IsInstanceOf (obj); + Assert.AreEqual(Manager, obj.GetFbxManager()); + + using(var manager2 = FbxManager.Create()) { + var obj2 = CreateObject(manager2, "MyOtherObject"); + Assert.AreEqual(manager2, obj2.GetFbxManager()); + Assert.AreNotEqual(Manager, obj2.GetFbxManager()); + } + + var obj3 = CreateObject(obj, "MySubObject"); + Assert.AreEqual(Manager, obj3.GetFbxManager()); + + // Test with a null manager or container. Should throw. + Assert.That (() => { CreateObject((FbxManager)null, "MyObject"); }, Throws.Exception.TypeOf()); + Assert.That (() => { CreateObject((FbxObject)null, "MyObject"); }, Throws.Exception.TypeOf()); + + // Test having a scene as the container. + TestSceneContainer(); + + // Test with a null string. Should work. + Assert.IsNotNull(CreateObject((string)null)); + + // Test with a destroyed manager. Should throw. + var mgr = FbxManager.Create(); + mgr.Destroy(); + Assert.That (() => { CreateObject(mgr, "MyObject"); }, Throws.Exception.TypeOf()); + + // Test with a disposed manager. Should throw. + mgr = FbxManager.Create(); + mgr.Dispose(); + Assert.That (() => { CreateObject(mgr, "MyObject"); }, Throws.Exception.TypeOf()); + } + + [Test] + public virtual void TestDisposeDestroy () + { + DoTestDisposeDestroy(canDestroyNonRecursive: true); + } + + public virtual void DoTestDisposeDestroy (bool canDestroyNonRecursive) + { + T a, b; + + // Test destroying just yourself. + a = CreateObject ("a"); + b = CreateObject(a, "b"); + a.Destroy (); + Assert.That(() => a.GetName(), Throws.Exception.TypeOf()); + if (canDestroyNonRecursive) { + b.GetName(); // does not throw! tests that the implicit 'pRecursive: false' got through + b.Destroy(); + } else { + Assert.That(() => b.GetName(), Throws.Exception.TypeOf()); + } + + // Test destroying just yourself, explicitly non-recursive. + a = CreateObject ("a"); + b = CreateObject(a, "b"); + a.Destroy (false); + Assert.That(() => a.GetName(), Throws.Exception.TypeOf()); + if (canDestroyNonRecursive) { + b.GetName(); // does not throw! tests that the explicit 'false' got through + b.Destroy(); + } else { + Assert.That(() => b.GetName(), Throws.Exception.TypeOf()); + } + + // Test destroying recursively. + a = CreateObject ("a"); + b = CreateObject(a, "b"); + a.Destroy(true); + Assert.That(() => b.GetName(), Throws.Exception.TypeOf()); + Assert.That(() => a.GetName(), Throws.Exception.TypeOf()); + + // Test disposing. TODO: how to test that a was actually destroyed? + a = CreateObject("a"); + a.Dispose(); + Assert.That(() => a.GetName(), Throws.Exception.TypeOf()); + + // Test that the using statement works. + using (a = CreateObject ("a")) { + a.GetName (); // works here, throws outside using + } + Assert.That(() => a.GetName(), Throws.Exception.TypeOf()); + + // Test that if we try to use an object after Destroy()ing its + // manager, the object was destroyed as well. + a = CreateObject("a"); + Assert.IsNotNull (a); + Manager.Destroy(); + Assert.That (() => { a.GetName (); }, Throws.Exception.TypeOf()); + } + + [Test] + public void TestVarious() + { + FbxObject obj; + + /************************************************************ + * Test selection + ************************************************************/ + obj = CreateObject (); + Assert.IsFalse (obj.GetSelected ()); + obj.SetSelected (true); + Assert.IsTrue (obj.GetSelected ()); + + /************************************************************ + * Test name-related functions. + ************************************************************/ + + /* + * We use this also for testing that string handling works. + * Make sure we can pass const char*, FbxString, and const + * FbxString&. + * Make sure we can return those too (though I'm not actually + * seeing a return of a const-ref anywhere). + */ + // Test a function that takes const char*. + obj = FbxObject.Create(Manager, "MyObject"); + Assert.IsNotNull (obj); + + // Test a function that returns const char*. + Assert.AreEqual ("MyObject", obj.GetName ()); + + // Test a function that takes an FbxString with an accent in it. + obj.SetNameSpace("Accentué"); + + // Test a function that returns FbxString. + Assert.AreEqual ("MyObject", obj.GetNameWithoutNameSpacePrefix ()); + + // Test a function that returns FbxString with an accent in it. + Assert.AreEqual ("Accentué", obj.GetNameSpaceOnly()); + + // Test a function that takes a const char* and returns an FbxString. + // We don't want to convert the other StripPrefix functions, which + // modify their argument in-place. + Assert.AreEqual("MyObject", FbxObject.StripPrefix("NameSpace::MyObject")); + + obj.SetName("new name"); + Assert.AreEqual("new name", obj.GetName()); + + obj.SetInitialName("init"); + Assert.AreEqual("init", obj.GetInitialName()); + + /************************************************************ + * Test shader implementations + ************************************************************/ + using (obj = FbxObject.Create(Manager, "MyObject")) { + var impl = FbxImplementation.Create(obj, "impl"); + Assert.IsTrue(obj.AddImplementation(impl)); + Assert.IsTrue(obj.RemoveImplementation(impl)); + Assert.IsTrue(obj.AddImplementation(impl)); + Assert.IsTrue(obj.SetDefaultImplementation(impl)); + Assert.AreEqual(impl, obj.GetDefaultImplementation()); + Assert.IsTrue(obj.HasDefaultImplementation()); + } + + /************************************************************ + * Test property functions + ************************************************************/ + using (obj = CreateObject("theobj")) { + using(var obj2 = CreateObject("otherobj")) { + // Make a property and connect it from obj to obj2. + var prop = FbxProperty.Create(obj, Globals.FbxBoolDT, "maybe"); + var prop2 = FbxProperty.Create(obj, Globals.FbxFloatDT, "probability"); + + Assert.IsTrue(obj.ConnectSrcProperty(prop)); + Assert.IsTrue(obj.ConnectSrcProperty(prop2)); + Assert.IsTrue(obj2.ConnectDstProperty(prop)); + + Assert.IsTrue(obj.IsConnectedSrcProperty(prop)); + Assert.IsTrue(obj2.IsConnectedDstProperty(prop)); + + Assert.AreEqual(2, obj.GetSrcPropertyCount()); + Assert.AreEqual(1, obj2.GetDstPropertyCount()); + + Assert.AreEqual(prop, obj.GetSrcProperty()); + Assert.AreEqual(prop, obj.GetSrcProperty(0)); + Assert.AreEqual(prop2, obj.GetSrcProperty(1)); + Assert.AreEqual(prop, obj2.GetDstProperty()); + Assert.AreEqual(prop, obj2.GetDstProperty(0)); + + Assert.AreEqual(prop, obj.FindSrcProperty("maybe")); + Assert.AreEqual(prop, obj2.FindDstProperty("maybe")); + Assert.IsFalse(obj.FindSrcProperty("maybe", 1).IsValid()); + Assert.IsFalse(obj2.FindDstProperty("maybe", 1).IsValid()); + + // Iterating over properties + Assert.IsTrue(obj.GetFirstProperty().IsValid()); + Assert.IsTrue(obj.GetNextProperty(obj.GetFirstProperty()).IsValid()); + Assert.IsTrue(obj.GetClassRootProperty().IsValid()); + + // FindProperty + Assert.AreEqual(prop, obj.FindProperty("maybe")); + Assert.AreEqual(prop, obj.FindProperty("mayBE", false)); + Assert.IsFalse(obj.FindProperty("mayBE", true).IsValid()); + Assert.AreEqual(prop, obj.FindProperty("maybe", Globals.FbxBoolDT)); + Assert.AreEqual(prop, obj.FindProperty("mayBE", Globals.FbxBoolDT, false)); + + // FindPropertyHierarchical + Assert.AreEqual(prop, obj.FindPropertyHierarchical("maybe")); + Assert.AreEqual(prop, obj.FindPropertyHierarchical("mayBE", false)); + Assert.IsFalse(obj.FindPropertyHierarchical("mayBE", true).IsValid()); + Assert.AreEqual(prop, obj.FindPropertyHierarchical("maybe", Globals.FbxBoolDT)); + Assert.AreEqual(prop, obj.FindPropertyHierarchical("mayBE", Globals.FbxBoolDT, false)); + + // Disconnecting + int nSrc = obj.GetSrcPropertyCount(); + int nDst = obj2.GetDstPropertyCount(); + + Assert.IsTrue(obj.DisconnectSrcProperty(prop)); + Assert.IsTrue(obj2.DisconnectDstProperty(prop)); + + Assert.AreEqual(nSrc - 1, obj.GetSrcPropertyCount()); + Assert.AreEqual(nDst - 1, obj2.GetDstPropertyCount()); + } + } + + /************************************************************ + * Test object connection functions + ************************************************************/ + + // need to order them this way for FbxScene, which deletes obj if Source Object is destroyed + using (var ownerObj = CreateObject ("ownerObj")) { + using (obj = CreateObject ("obj")) { + // Test ConnectSrcObject functions + int origCount = ownerObj.GetSrcObjectCount (); + + bool result = ownerObj.ConnectSrcObject (obj); + Assert.IsTrue (result); + Assert.IsTrue (ownerObj.IsConnectedSrcObject (obj)); + Assert.AreEqual (origCount + 1, ownerObj.GetSrcObjectCount ()); + if (origCount == 0) { + Assert.AreEqual (obj, ownerObj.GetSrcObject ()); + } else { + // FbxScene has more than one object set as source + Assert.AreNotEqual (obj, ownerObj.GetSrcObject ()); + } + Assert.AreEqual (obj, ownerObj.GetSrcObject (origCount)); + Assert.AreEqual (obj, ownerObj.FindSrcObject ("obj")); + Assert.IsNull (ownerObj.FindSrcObject ("obj", origCount + 1)); + + // TODO: Fix so this doesn't crash + /*Assert.That (() => { + ownerObj.FindSrcObject (null); + }, Throws.Exception.TypeOf ());*/ + + result = ownerObj.DisconnectSrcObject (obj); + Assert.IsTrue (result); + Assert.IsFalse (ownerObj.IsConnectedSrcObject (obj)); + + Assert.That (() => { + ownerObj.ConnectSrcObject (null); + }, Throws.Exception.TypeOf ()); + + result = ownerObj.ConnectSrcObject (obj, FbxConnection.EType.eData); + Assert.IsTrue (result); + } + } + + // need to order them this way for FbxScene, which deletes ownerObj if Destination Object is destroyed + using (obj = CreateObject ("obj")) { + using (var ownerObj = CreateObject ("ownerObj")) { + // Test ConnectDstObject functions + int origCount = ownerObj.GetDstObjectCount (); + + bool result = ownerObj.ConnectDstObject (obj); + Assert.IsTrue (result); + Assert.IsTrue (ownerObj.IsConnectedDstObject (obj)); + Assert.AreEqual (origCount + 1, ownerObj.GetDstObjectCount ()); + if (origCount == 0) { + Assert.AreEqual (obj, ownerObj.GetDstObject ()); + } else { + // FbxAnimCurve has the scene as a DstObject + Assert.AreNotEqual (obj, ownerObj.GetDstObject ()); + } + Assert.AreEqual (obj, ownerObj.GetDstObject (origCount)); + Assert.AreEqual (obj, ownerObj.FindDstObject ("obj")); + Assert.IsNull (ownerObj.FindDstObject ("obj", origCount+1)); + + // TODO: Fix so this doesn't crash + /*Assert.That (() => { + ownerObj.FindDstObject (null); + }, Throws.Exception.TypeOf ());*/ + + result = ownerObj.DisconnectDstObject (obj); + Assert.IsTrue (result); + Assert.IsFalse (ownerObj.IsConnectedDstObject (obj)); + + Assert.That (() => { + ownerObj.ConnectDstObject (null); + }, Throws.Exception.TypeOf ()); + + result = ownerObj.ConnectDstObject (obj, FbxConnection.EType.eData); + Assert.IsTrue (result); + } + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Base.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Base.cs.meta new file mode 100644 index 0000000000..0fd21314e3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Base.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bb2a6f0e1115643e188182ddf668b103 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/CppMatchingHelper.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/CppMatchingHelper.cs new file mode 100644 index 0000000000..86716adb48 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/CppMatchingHelper.cs @@ -0,0 +1,138 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + static class CppMatchingHelper + { + public delegate T Factory(double[] expected); + public delegate T TestCommand(T a, T b); + public delegate bool AreSimilar(T a, T b); + + /** + * Help tests like FbxVector4Test verify that the FbxSharp + * implementation of an arithmetic type matches the C++ FBX SDK + * implementation. + * + * E.g. test that the C# and C++ FbxVector4 implementations match. + * + * The scheme is that the build system compiles and runs a C++ test + * program (e.g. Vectors.cpp), which outputs lines in a format: + * context:command:double,double,double... + * + * Context and command are strings with no colons in them. + * + * Each double is encoded as + * description/exact + * where 'description' is a human-readable double (e.g. 1.002452) and + * exact is a 64-bit hex string that has the exact bits of a double. + * + * Each line is the result of running a unary or binary operation (the + * command) on two variables 'a' and 'b'. The command "a" should be + * issued first, followed by the command "b". These initialize the two + * variables. + * + * Callers must provide: + * - the file that the C++ test program creates + * - the 'context' that matches; we ignore lines for other contexts + * - a factory to convert an array of doubles to the type you are + * testing (e.g. FbxVector4) + * - a map from 'command' values to lambda functions that implement that command + * (except for commands "a" and "b") + * - optionally, a map from 'command' values to lambda functions that + * compare results (to allow inexact comparison, e.g. for differences + * in rounding). + * + * The C++ test must call every command. + */ + public static void MatchingTest( + string filename, + string test_context, + Factory factory, + Dictionary> commands, + Dictionary> custom_comparators = null + ) where T : new() + { + var a = new T(); + var b = new T(); + var commands_used = new HashSet(); + + using (var file = new System.IO.StreamReader(filename)) { + string line; + while ( null != (line = file.ReadLine()) ) { + string context; + string command; + double [] expectedArray; + ParseLine(line, out context, out command, out expectedArray); + if (context != test_context) { + continue; + } + + var expected = factory(expectedArray); + + // Perform the command, depending what it is. + T actualValue; + if (command == "a") { + actualValue = a = expected; + } else if (command == "b") { + actualValue = b = expected; + } else { + commands_used.Add(command); + Assert.IsTrue(commands.ContainsKey(command), "unknown command " + command); + actualValue = commands[command](a, b); + } + + // Make sure we got the expected result. + if (custom_comparators != null && custom_comparators.ContainsKey(command)) { + var comp = custom_comparators[command]; + Assert.IsTrue(comp(expected, actualValue), command); + } else { + Assert.AreEqual(expected, actualValue, command); + } + } + } + + // Make sure we actually called all those commands. + Assert.That(commands_used, Is.EquivalentTo(commands.Keys)); + } + + // Parse one line in the file. + static void ParseLine(string line, + out string out_context, + out string out_command, + out double [] out_expected) + { + // Parse the whole colon-separated line: + // file.cpp:5:a + 2:6.71089e+07/0x419000000c000000,6.7... + var items = line.Split(':'); + Assert.AreEqual(items.Length, 3); + + out_context = items[0]; + out_command = items[1]; + + // now parse the comma-separated doubles: + // 6.71089e+07/0x419000000c000000,6.71089e+07/0x4190000010000000,... + var doubles = items[2]; + items = doubles.Split(','); + + out_expected = new double[items.Length]; + for(int i = 0, n = items.Length; i < n; ++i) { + // parse one double: 6.71089e+07/0x419000000c000000 + // we ignore the printed double, just take its exact 64-bit representation. + var pair = items[i].Split('/'); + Assert.AreEqual(2, pair.Length); + var asInt = System.Convert.ToInt64(pair[1], 16); + var asDouble = System.BitConverter.Int64BitsToDouble(asInt); + out_expected[i] = asDouble; + } + } + + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/CppMatchingHelper.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/CppMatchingHelper.cs.meta new file mode 100644 index 0000000000..14a04acba4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/CppMatchingHelper.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 22d2affa55c6542beb5105963a3ce55b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/DisposeTester.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/DisposeTester.cs new file mode 100644 index 0000000000..fdf8b883d7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/DisposeTester.cs @@ -0,0 +1,27 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal static class DisposeTester + { + /// + /// Test that dispose doesn't crash or throw anything. + /// + /// This function is here just to allow the coverage tester to + /// devirtualize the call to Dispose. Otherwise, it fails to notice + /// some calls we're actually making. + /// + public static void TestDispose(T disposable) where T: System.IDisposable + { + disposable.Dispose(); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/DisposeTester.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/DisposeTester.cs.meta new file mode 100644 index 0000000000..1673dcd8d0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/DisposeTester.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 72de41b4eacbd4c1a92029c3057a6c07 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/EqualityTester.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/EqualityTester.cs new file mode 100644 index 0000000000..27bcf28a6b --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/EqualityTester.cs @@ -0,0 +1,113 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal static class EqualityTester + { + // T.Equals(T), T.Equals(base(T), ... + static List s_Equals = new List(); + + // operator== (T, T), operator== (base(T), base(T), ... + static List s_op_Equality = new List(); + + // operator!= (T, T), operator== (base(T), base(T), ... + static List s_op_Inequality = new List(); + + static EqualityTester() { + // For T and its base classes B1, B2, ... + // get the following functions so we can test equality: + // bool Equals(U) + // static bool operator == (U, U) + // static bool operator != (U, U) + var U = typeof(T); + do { + // Get all the methods, look for Equals(U), op_Equality(U,U), and op_Inequality(U,U) + var methods = U.GetMethods(); + foreach(var method in methods) { + if (method.Name == "Equals") { + var parms = method.GetParameters(); + if (parms.Length == 1 && parms[0].ParameterType == U) { + s_Equals.Add(method); + } + } else if (method.Name == "op_Equality") { + var parms = method.GetParameters(); + if (parms.Length == 2 && parms[0].ParameterType == U && parms[1].ParameterType == U) { + s_op_Equality.Add(method); + } + } else if (method.Name == "op_Inequality") { + var parms = method.GetParameters(); + if (parms.Length == 2 && parms[0].ParameterType == U && parms[1].ParameterType == U) { + s_op_Inequality.Add(method); + } + } + } + + // Repeat on the base type, if there is one. + U = U.BaseType; + } while (U != null); + } + + /* Instances of this class definitely don't cast to T. */ + class WrongClass { }; + + /* + * Test all the equality and hashing functions on type T. + * + * 'a' is an arbitrary non-null instance of class T. + * + * 'b' should be a different non-null instance. + * + * 'acopy' should be equal, but not reference-equal, to 'a' (unless the + * notion of equality for this type is reference equality) + */ + public static void TestEquality(T a, T b, T acopy) { + // Test Equals(object) on a. + Assert.IsTrue(a.Equals((object) acopy)); + Assert.IsFalse(a.Equals((object) b)); + Assert.IsFalse(a.Equals((object) new WrongClass())); + + // Test all the Equals functions on a. + // a.Equals(a) is true + // a.Equals(b) is false + // a.Equals(null) is false and doesn't throw an exception + foreach(var equals in s_Equals) { + Assert.IsTrue(Invoker.Invoke(equals, a, a)); + Assert.IsTrue(Invoker.Invoke(equals, a, acopy)); + Assert.IsFalse(Invoker.Invoke(equals, a, b)); + Assert.IsFalse(Invoker.Invoke(equals, a, null)); + } + + // test operator== in various cases including null handling + foreach(var equals in s_op_Equality) { + Assert.IsTrue(Invoker.InvokeStatic(equals, a, a)); + Assert.IsTrue(Invoker.InvokeStatic(equals, a, acopy)); + Assert.IsFalse(Invoker.InvokeStatic(equals, a, b)); + Assert.IsFalse(Invoker.InvokeStatic(equals, a, null)); + Assert.IsFalse(Invoker.InvokeStatic(equals, null, b)); + Assert.IsTrue(Invoker.InvokeStatic(equals, null, null)); + } + + // test operator!= in the same cases; should always return ! the answer + foreach(var equals in s_op_Inequality) { + Assert.IsTrue(!Invoker.InvokeStatic(equals, a, a)); + Assert.IsTrue(!Invoker.InvokeStatic(equals, a, acopy)); + Assert.IsFalse(!Invoker.InvokeStatic(equals, a, b)); + Assert.IsFalse(!Invoker.InvokeStatic(equals, a, null)); + Assert.IsFalse(!Invoker.InvokeStatic(equals, null, b)); + Assert.IsTrue(!Invoker.InvokeStatic(equals, null, null)); + } + + // test hashing. This is very minimal: just testing that two + // instances that test equal have equal hash code. + Assert.AreEqual(a.GetHashCode(), acopy.GetHashCode()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/EqualityTester.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/EqualityTester.cs.meta new file mode 100644 index 0000000000..2c3762c899 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/EqualityTester.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2ee22a37175c44a8f9909f179b84102a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAMatrixTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAMatrixTest.cs new file mode 100644 index 0000000000..e6c3bdbee2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAMatrixTest.cs @@ -0,0 +1,164 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxAMatrixTest : FbxDouble4x4TestBase + { + [Test] + public void TestEquality() + { + var zero = new FbxVector4(); + var one = new FbxVector4(1,1,1); + var mx1 = new FbxAMatrix(zero, zero, one); + var mx2 = new FbxAMatrix(one, zero, one); + var mx1copy = new FbxAMatrix(zero, zero, one); + EqualityTester.TestEquality(mx1, mx2, mx1copy); + } + + // Helper for the scaling operators. + // + // If scale is a power of two, tolerance can be zero. + // + // Scaling an FbxAMatrix scales the 3x3 matrix for scale and rotation, + // and zeroes out the translation. + static void AssertScaled(FbxAMatrix expected, FbxAMatrix scaled, + double scale, double tolerance = 0) + { + for(int y = 0; y < 3; ++y) { + for (int x = 0; x < 3; ++x) { + Assert.AreEqual(scale * expected.Get(x, y), scaled.Get(x, y), + tolerance, string.Format("Index ({0} {1})", x, y)); + } + } + Assert.AreEqual(new FbxVector4(0,0,0,1), scaled.GetRow(3)); + Assert.AreEqual(new FbxVector4(0,0,0,1), scaled.GetColumn(3)); + } + + [Test] + public void BasicTests () + { + base.TestElementAccessAndDispose(new FbxAMatrix()); + + // make sure the constructors compile and don't crash + new FbxAMatrix(); + new FbxAMatrix(new FbxAMatrix()); + var mx = new FbxAMatrix(new FbxVector4(), new FbxVector4(), new FbxVector4(1,1,1)); + + // check that the matrix is the id matrix + Assert.IsTrue(mx.IsIdentity()); + for(int y = 0; y < 4; ++y) { + for(int x = 0; x < 4; ++x) { + Assert.AreEqual(x == y ? 1 : 0, mx.Get(y, x)); + } + } + + // Test that all the operations work. + // In particular, test that they don't return the default element + // when they aren't supposed to. + + var translate = new FbxVector4(5, 3, 1); + var euler = new FbxVector4(-135, -90, 0); + var scale = new FbxVector4(1, 2, .5); + var quat = new FbxQuaternion(); + quat.ComposeSphericalXYZ(euler); + + mx = new FbxAMatrix(translate, euler, scale); + Assert.IsFalse(mx.IsIdentity()); + Assert.IsTrue(mx.IsIdentity(10)); // squint very, very, very hard + + FbxVector4Test.AssertSimilarXYZ(translate, mx.GetT()); + FbxVector4Test.AssertSimilarEuler(euler, mx.GetR()); + FbxQuaternionTest.AssertSimilar(quat, mx.GetQ()); + FbxVector4Test.AssertSimilarXYZ(scale, mx.GetS()); + FbxVector4Test.AssertSimilarXYZ(new FbxVector4(0.354, 0.354, 0), mx.GetRow(2), 1e-2); + FbxVector4Test.AssertSimilarXYZ(new FbxVector4(1, 0, 0), mx.GetColumn(2)); + + mx.SetT(translate * 2); + FbxVector4Test.AssertSimilarXYZ(2 * translate, mx.GetT()); + + mx.SetR(euler * 2); + FbxVector4Test.AssertSimilarEuler(2 * euler, mx.GetR()); + + mx.SetQ(quat * 2); + FbxQuaternionTest.AssertSimilar(2 * quat, mx.GetQ()); + + mx.SetS(scale * 2); + FbxVector4Test.AssertSimilarXYZ(2 * scale, mx.GetS()); + + mx.SetTRS(translate, euler, scale); + FbxVector4Test.AssertSimilarXYZ(translate, mx.GetT()); + + mx.SetTQS(2 * translate, 2 * quat, 2 * scale); + FbxVector4Test.AssertSimilarXYZ(2 * translate, mx.GetT()); + + // Test Inverse. + var mxInv = mx.Inverse(); + Assert.AreNotEqual(mx.GetT(), mxInv.GetT()); + Assert.IsTrue((mx * mxInv).IsIdentity()); + + // Test multiplying by a translation. Really we just want to make sure we got a result + // different than doing nothing. + FbxVector4Test.AssertSimilarXYZ(new FbxVector4(17.778175, 2.464466, 4), mx.MultT(new FbxVector4(1,2,3)), 1e-5); + + // Test multiplying by a rotation. + FbxVector4Test.AssertSimilarEuler(new FbxVector4(-180, 0, 45), mx.MultR(new FbxVector4(0, -90, 0))); + quat.ComposeSphericalXYZ(new FbxVector4(0, -90, 0)); + quat = mx.MultQ(quat); + var quatExpected = new FbxQuaternion(); + quatExpected.ComposeSphericalXYZ(new FbxVector4(-180, 0, 45)); + FbxQuaternionTest.AssertSimilar(quatExpected, quat); + + // Test multiplying a scale. + FbxVector4Test.AssertSimilarXYZ(new FbxVector4(4, 6, .5), mx.MultS(new FbxVector4(2, 1.5, .5))); + + // Test scaling. Multiply/divide by powers of two so there's no roundoff. + // The scale/rotate is scaled, the translation is cleared to (0,0,0,1). + AssertScaled(mx, mx * 2, 2); + AssertScaled(mx, 2 * mx, 2); + AssertScaled(mx, mx / 2, 0.5); + + // Test negating. This is different from scaling by -1. + using (var mxNegated = -mx) { + for(int y = 0; y < 4; ++y) { + for(int x = 0; x < 4; ++x) { + Assert.AreEqual(-mx.Get(x, y), mxNegated.Get(x, y), + string.Format("Index {0} {1}", x, y)); + } + } + } + + // Test transpose. + using (var mxTranspose = mx.Transpose()) { + for(int y = 0; y < 4; ++y) { + for(int x = 0; x < 4; ++x) { + Assert.AreEqual(mx.Get(y, x), mxTranspose.Get(x, y), + string.Format("Index {0} {1}", x, y)); + } + } + } + + // Test setting to identity. + mx.SetIdentity(); + Assert.IsTrue(mx.IsIdentity()); + + // Slerp between two rotation matrices. + var q1 = new FbxQuaternion(); q1.ComposeSphericalXYZ(new FbxVector4(0, -90, 0)); + var q2 = new FbxQuaternion(); q2.ComposeSphericalXYZ(new FbxVector4(0, 90, 0)); + + var m1 = new FbxAMatrix(); m1.SetQ(q1); + var m2 = new FbxAMatrix(); m2.SetQ(q2); + + + var m12 = m1.Slerp(m2, 0.25); + var q12 = new FbxQuaternion(); q12.ComposeSphericalXYZ(new FbxVector4(0, -45, 0)); + FbxQuaternionTest.AssertSimilar(q12, m12.GetQ()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAMatrixTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAMatrixTest.cs.meta new file mode 100644 index 0000000000..7b1c9ddd14 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAMatrixTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 159ff8c03846041258256b47aa78bcaf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveFilterUnrollTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveFilterUnrollTest.cs new file mode 100644 index 0000000000..fda8a51df0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveFilterUnrollTest.cs @@ -0,0 +1,115 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using System.Collections.Generic; +using Autodesk.Fbx; +using System.Linq; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxAnimCurveFilterUnrollTest : TestBase + { + public static IEnumerable KeyTimeValues { + get { + yield return new float[4] {0f, 33f, 149f, 7f}; + yield return new float[4] {30f, 59f, -43f, 170f}; + yield return new float[4] {60f, -40f, -31f, 175f}; + yield return new float[4] {90f, -54f, 141f, 6f}; + yield return new float[4] {120f, -7f, 146f, 3f}; + } + } + + [Test] + public void TestBasics() { + + // create a curve we can unroll. + var fbxScene = FbxScene.Create(Manager, "scene"); + var fbxNode = FbxNode.Create(fbxScene, "node"); + + var fbxAnimNode = FbxAnimCurveNode.CreateTypedCurveNode(fbxNode.LclRotation, fbxScene); + FbxAnimCurve[] fbxAnimCurves = { + fbxAnimNode.CreateCurve(fbxAnimNode.GetName(), Globals.FBXSDK_CURVENODE_COMPONENT_X), + fbxAnimNode.CreateCurve(fbxAnimNode.GetName(), Globals.FBXSDK_CURVENODE_COMPONENT_Y), + fbxAnimNode.CreateCurve(fbxAnimNode.GetName(), Globals.FBXSDK_CURVENODE_COMPONENT_Z) + }; + + FbxAnimCurveFilterUnroll filter = new FbxAnimCurveFilterUnroll(); + + Assert.That(filter.NeedApply(fbxAnimNode), Is.False, "expected not to need to unroll curves"); + Assert.That(filter.Apply(fbxAnimNode), Is.False, "expected to have nothing to do"); + + // ensure coverage for function that takes an FbxStatus + Assert.That (filter.NeedApply (fbxAnimNode, new FbxStatus ()), Is.False); + Assert.That (filter.Apply (fbxAnimNode, new FbxStatus()), Is.False); + + // configure the unroll condition + foreach (float[] keydata in KeyTimeValues) + { + double seconds = keydata[0]; + + foreach (var fbxAnimCurve in fbxAnimCurves) + fbxAnimCurve.KeyModifyBegin(); + + using (var fbxTime = FbxTime.FromSecondDouble(seconds)) + { + for (int ci = 0; ci < fbxAnimCurves.Length; ci++) + { + int ki = fbxAnimCurves[ci].KeyAdd(fbxTime); + fbxAnimCurves[ci].KeySet(ki, fbxTime, keydata[ci+1]); + } + } + + foreach (var fbxAnimCurve in fbxAnimCurves) + fbxAnimCurve.KeyModifyEnd(); + + } + + Assert.That(filter.NeedApply(fbxAnimNode), Is.True, "expected to need to unroll curves"); + Assert.That(filter.Apply(fbxAnimNode), Is.True, "expected to have unroll"); + + IEnumerator origKeydata = KeyTimeValues.GetEnumerator(); + + for (int ki=0; ki < fbxAnimCurves[0].KeyGetCount(); ki++) + { + List result = new List(){(float)fbxAnimCurves[0].KeyGetTime(ki).GetSecondDouble()}; + + result = result.Concat((from ac in fbxAnimCurves select ac.KeyGetValue(ki))).ToList(); + + origKeydata.MoveNext(); + if (ki == 0 || ki == 3 || ki == 4) + Assert.That( result, Is.EqualTo(origKeydata.Current)); + else + Assert.That( result, Is.Not.EqualTo(origKeydata.Current)); + } + + filter.Reset(); + filter.Dispose (); + } + + protected FbxManager Manager { + get; + private set; + } + + [SetUp] + public virtual void Init () + { + Manager = FbxManager.Create (); + } + + [TearDown] + public virtual void Term () + { + try { + Manager.Destroy (); + } + catch (System.ArgumentNullException) { + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveFilterUnrollTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveFilterUnrollTest.cs.meta new file mode 100644 index 0000000000..3c593d5afa --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveFilterUnrollTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4351a166200e3418dac5c66d854dd000 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveNodeTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveNodeTest.cs new file mode 100644 index 0000000000..8e57e06728 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveNodeTest.cs @@ -0,0 +1,72 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxAnimCurveNodeTest : Base + { + + [Test] + public void TestBasics() + { + var scene = FbxScene.Create(Manager, "scene"); + var node = FbxNode.Create(scene, "node"); + + /* Test all we can test with a non-composite curve node, namely one that points to + a lcl translation. */ + var animNode = FbxAnimCurveNode.CreateTypedCurveNode(node.LclTranslation, scene); + Assert.IsFalse(animNode.IsComposite()); + Assert.AreEqual(3, animNode.GetChannelsCount()); + Assert.AreEqual(0, animNode.GetChannelIndex(Globals.FBXSDK_CURVENODE_COMPONENT_X)); + Assert.AreEqual(Globals.FBXSDK_CURVENODE_COMPONENT_Y, animNode.GetChannelName(1)); + + var xcurve = animNode.CreateCurve(animNode.GetName(), Globals.FBXSDK_CURVENODE_COMPONENT_X); + Assert.IsNotNull(xcurve); + var xcurve2 = animNode.CreateCurve(animNode.GetName()); + Assert.IsNotNull(xcurve2); + var ycurve = animNode.CreateCurve(animNode.GetName(), 1); + Assert.IsNotNull(ycurve); + + animNode.SetChannelValue(Globals.FBXSDK_CURVENODE_COMPONENT_Z, 6); + Assert.AreEqual(6, animNode.GetChannelValue(Globals.FBXSDK_CURVENODE_COMPONENT_Z, 0)); + Assert.AreEqual(6, animNode.GetChannelValue(2, 0)); + animNode.SetChannelValue(2, 0); + + Assert.AreEqual(2, animNode.GetCurveCount(0)); + Assert.AreEqual(1, animNode.GetCurveCount(1, animNode.GetName())); + + Assert.AreEqual(xcurve, animNode.GetCurve(0)); + Assert.AreEqual(xcurve2, animNode.GetCurve(0,1)); + Assert.AreEqual(xcurve2, animNode.GetCurve(0, 1, animNode.GetName())); + Assert.IsNull(animNode.GetCurve(1,1)); + + var key = xcurve.KeyAdd(FbxTime.FromSecondDouble(0)); + xcurve.KeySet(key, FbxTime.FromSecondDouble(0), 5); + key = xcurve.KeyAdd(FbxTime.FromSecondDouble(1)); + xcurve.KeySet(key, FbxTime.FromSecondDouble(1), -5); + + Assert.IsTrue(animNode.IsAnimated()); + /* TODO: build a composite anim node and test this for real. */ + Assert.IsTrue(animNode.IsAnimated(true)); + + var timespan = new FbxTimeSpan(); + Assert.IsTrue(animNode.GetAnimationInterval(timespan)); + Assert.AreEqual(FbxTime.FromSecondDouble(0), timespan.GetStart()); + Assert.AreEqual(FbxTime.FromSecondDouble(1), timespan.GetStop()); + + /* Get a property that isn't a Double3; add a channel for it. */ + var boolNode = FbxAnimCurveNode.CreateTypedCurveNode(node.VisibilityInheritance, scene); + Assert.IsFalse(boolNode.IsComposite()); + Assert.IsFalse(boolNode.IsAnimated()); + Assert.IsTrue(boolNode.AddChannel("vis", 1)); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveNodeTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveNodeTest.cs.meta new file mode 100644 index 0000000000..0ed6c11adf --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveNodeTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb7499dc2f54e4419a18fbaf93c6c996 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveTest.cs new file mode 100644 index 0000000000..9fdafc2ff9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveTest.cs @@ -0,0 +1,219 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections.Generic; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxAnimCurveTest : Base + { + Dictionary m_scenes = new Dictionary(); + + public override FbxAnimCurve CreateObject(FbxManager mgr, string name = "") { + if (mgr == null) { throw new System.ArgumentNullException(); } + + /* Creating in a manager doesn't work for AnimCurves, but for the benefit of + testing, just fudge it by creating a scene for the manager. */ + FbxScene scene; + if (!m_scenes.TryGetValue(mgr, out scene)) { + scene = FbxScene.Create(mgr, "__testscene"); + m_scenes.Add(mgr, scene); + } + return FbxAnimCurve.Create(scene, name); + } + + public override FbxAnimCurve CreateObject(FbxObject container, string name = "") { + if (container == null) { throw new System.ArgumentNullException(); } + + if (container is FbxScene) { + /* Probably should have cast to a scene already... but ok. */ + return FbxAnimCurve.Create((FbxScene)container, name); + } else { + /* This create call doesn't do what you want. Use the manager's scene instead. */ + return CreateObject(container.GetFbxManager(), name); + } + } + + protected override void TestSceneContainer() + { + // The base test tries to make FbxAnimCurve with an FbxAnimCurve as + // parent; that doesn't work for some reason. So simplify it. + using(var scene = FbxScene.Create(Manager, "thescene")) { + var obj = CreateObject(scene, "scene_object"); + Assert.AreEqual(scene, obj.GetScene()); + } + { + // The base test assumes that if there's no scene, the object + // won't be in a scene. But FbxAnimCurve synthesizes a test + // scene. + var obj = CreateObject(Manager, "not_scene_object"); + Assert.AreNotEqual(null, obj.GetScene()); + } + } + + + [Test] + public void TestBasics () + { + var scene = FbxScene.Create(Manager, "scene"); + using (FbxAnimCurve curve = FbxAnimCurve.Create(scene, "curve")) { + // test KeyModifyBegin (make sure it doesn't crash) + curve.KeyModifyBegin (); + + // test KeyAdd + int last = 0; + int index = curve.KeyAdd (FbxTime.FromFrame (5), ref last); + Assert.GreaterOrEqual (index, 0); + + // test KeyAdd null FbxTime + Assert.That (() => { curve.KeyAdd(null); }, Throws.Exception.TypeOf()); + Assert.That (() => { curve.KeyAdd(null, ref last); }, Throws.Exception.TypeOf()); + + // test KeySet + FbxTime keyTime = FbxTime.FromSecondDouble(3); + curve.KeySet(index, keyTime, 5); + + // test KeyGetValue, KeyGetTime, KeyGetCount + Assert.AreEqual (5, curve.KeyGetValue (index)); + Assert.AreEqual (keyTime, curve.KeyGetTime (index)); + Assert.AreEqual (1, curve.KeyGetCount ()); + + // test don't crash + FbxAnimCurveKey key = curve.KeyGet(index); + Assert.That(key, Is.Not.Null); + + // make sure none of the variations crash + curve.KeySet (index, new FbxTime (), 5, FbxAnimCurveDef.EInterpolationType.eInterpolationConstant + ); + curve.KeySet (index, new FbxTime (), 0, + FbxAnimCurveDef.EInterpolationType.eInterpolationCubic, + FbxAnimCurveDef.ETangentMode.eTangentAuto + ); + curve.KeySet (index, new FbxTime (), 0, + FbxAnimCurveDef.EInterpolationType.eInterpolationCubic, + FbxAnimCurveDef.ETangentMode.eTangentAuto, 4 + ); + curve.KeySet (index, new FbxTime (), 0, + FbxAnimCurveDef.EInterpolationType.eInterpolationCubic, + FbxAnimCurveDef.ETangentMode.eTangentAuto, + 0, 3); + curve.KeySet (index, new FbxTime (), 0, + FbxAnimCurveDef.EInterpolationType.eInterpolationCubic, + FbxAnimCurveDef.ETangentMode.eTangentAuto, + 0, 0, FbxAnimCurveDef.EWeightedMode.eWeightedAll); + curve.KeySet (index, new FbxTime (), 0, + FbxAnimCurveDef.EInterpolationType.eInterpolationCubic, + FbxAnimCurveDef.ETangentMode.eTangentAuto, + 0, 0, FbxAnimCurveDef.EWeightedMode.eWeightedAll, 0); + curve.KeySet (index, new FbxTime (), 0, + FbxAnimCurveDef.EInterpolationType.eInterpolationCubic, + FbxAnimCurveDef.ETangentMode.eTangentAuto, + 0, 0, FbxAnimCurveDef.EWeightedMode.eWeightedAll, 0, 0); + curve.KeySet (index, new FbxTime (), 0, + FbxAnimCurveDef.EInterpolationType.eInterpolationCubic, + FbxAnimCurveDef.ETangentMode.eTangentAuto, + 0, 0, FbxAnimCurveDef.EWeightedMode.eWeightedAll, 0, 0, 0); + curve.KeySet (index, new FbxTime (), 0, + FbxAnimCurveDef.EInterpolationType.eInterpolationCubic, + FbxAnimCurveDef.ETangentMode.eTangentAuto, + 0, 0, FbxAnimCurveDef.EWeightedMode.eWeightedAll, 0, 0, 0, 0); + + // more setter test + curve.KeySetTangentMode (index, FbxAnimCurveDef.ETangentMode.eTangentUser); + Assert.That(curve.KeyGetTangentMode (index), Is.EqualTo (FbxAnimCurveDef.ETangentMode.eTangentUser)); + curve.KeySetTangentMode (index, FbxAnimCurveDef.ETangentMode.eTangentGenericBreak); + Assert.That(curve.KeyGetTangentMode (index), Is.EqualTo (FbxAnimCurveDef.ETangentMode.eTangentGenericBreak)); + + // test settings key parameters + key.SetTangentMode (FbxAnimCurveDef.ETangentMode.eTangentUser); + // Set break is only meaningful if tangent is eTangentAuto or eTangentUser + key.SetBreak (true); + Assert.True (key.GetBreak ()); + key.SetDataFloat (FbxAnimCurveDef.EDataIndex.eRightSlope, 1.0f); + Assert.That (key.GetDataFloat (FbxAnimCurveDef.EDataIndex.eRightSlope), Is.EqualTo (1.0f).Within (float.Epsilon)); + key.SetBreak (false); + Assert.False (key.GetBreak ()); + // + key.SetTangentWeightMode (FbxAnimCurveDef.EWeightedMode.eWeightedAll); + key.SetTangentWeightMode (FbxAnimCurveDef.EWeightedMode.eWeightedAll, FbxAnimCurveDef.EWeightedMode.eWeightedAll); + Assert.That(key.GetTangentWeightMode (), Is.EqualTo(FbxAnimCurveDef.EWeightedMode.eWeightedAll)); + // + key.SetBreak (true); + key.SetTangentWeightAndAdjustTangent (FbxAnimCurveDef.EDataIndex.eRightSlope, 1.0); + key.SetTangentWeightAndAdjustTangent (FbxAnimCurveDef.EDataIndex.eNextLeftSlope, 1.0); + key.SetTangentWeightAndAdjustTangent (FbxAnimCurveDef.EDataIndex.eWeights, 1.0); + key.SetTangentWeightAndAdjustTangent (FbxAnimCurveDef.EDataIndex.eRightWeight, 1.0); + key.SetTangentWeightAndAdjustTangent (FbxAnimCurveDef.EDataIndex.eNextLeftWeight, 1.0); + key.SetBreak (false); + // + key.SetTangentVelocityMode (FbxAnimCurveDef.EVelocityMode.eVelocityAll); + key.SetTangentVelocityMode (FbxAnimCurveDef.EVelocityMode.eVelocityAll, FbxAnimCurveDef.EVelocityMode.eVelocityAll); + Assert.That (key.GetTangentVelocityMode (), Is.EqualTo (FbxAnimCurveDef.EVelocityMode.eVelocityAll)); + // + key.SetTangentVisibility(FbxAnimCurveDef.ETangentVisibility.eTangentShowLeft); + Assert.That (key.GetTangentVisibility (), Is.EqualTo (FbxAnimCurveDef.ETangentVisibility.eTangentShowLeft)); + + // test KeyModifyEnd (make sure it doesn't crash) + curve.KeyModifyEnd (); + } + + // Also test that the AnimCurveBase can't be created. + Assert.That(() => FbxAnimCurveBase.Create(Manager, ""), Throws.Exception.TypeOf()); + Assert.That(() => FbxAnimCurveBase.Create(FbxObject.Create(Manager, ""), ""), Throws.Exception.TypeOf()); + } + + [Test] + public override void TestDisposeDestroy() + { + // Because we can't build a recursive structure of anim curves, + // this test is much simpler than the usual FbxObject test. + var curve = CreateObject("a"); + DisposeTester.TestDispose(curve); + using (CreateObject("b")); + + curve = CreateObject("c"); + curve.Destroy(); + Assert.That(() => curve.GetName(), Throws.Exception.TypeOf()); + + // we can't destroy recursively, but we still get the flag + curve = CreateObject("d"); + curve.Destroy(false); + } + + [Test] + public void TestKeyAddBeforeKeyModifyBegin() + { + using (FbxAnimCurve curve = CreateObject ("curve")) { + curve.KeyAdd (new FbxTime ()); + curve.KeyModifyBegin (); + } + } + + [Test] + public void TestKeyModifyEndBeforeKeyModifyBegin() + { + using (FbxAnimCurve curve = CreateObject ("curve")) { + curve.KeyModifyEnd (); + curve.KeyModifyBegin (); + } + } + } + + internal class FbxAnimCurveDefTest /* testing a static class, so we can't derive from TestBase */ + { + [Test] + public void TestBasics() + { + Assert.AreEqual(0.0, FbxAnimCurveDef.sDEFAULT_VELOCITY); + Assert.AreNotEqual(0.0, FbxAnimCurveDef.sDEFAULT_WEIGHT); + Assert.That(FbxAnimCurveDef.sMIN_WEIGHT, Is.GreaterThan(0.0f)); + Assert.That(FbxAnimCurveDef.sMAX_WEIGHT, Is.LessThan(1.0f)); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveTest.cs.meta new file mode 100644 index 0000000000..abe149ae5e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimCurveTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 30eb6502cc51d4d2fbbf680657174f67 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimLayerTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimLayerTest.cs new file mode 100644 index 0000000000..06732d3c23 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimLayerTest.cs @@ -0,0 +1,20 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxAnimLayerTest : Base + { + [Test] + public void TestBasics(){ + FbxCollectionTest.GenericTests (CreateObject ("anim layer"), Manager); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimLayerTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimLayerTest.cs.meta new file mode 100644 index 0000000000..903055af90 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimLayerTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f03960ec22ca84a068a73b81ffce40cf +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimStackTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimStackTest.cs new file mode 100644 index 0000000000..3adef3d875 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimStackTest.cs @@ -0,0 +1,36 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxAnimStackTest : Base + { + [Test] + public void TestBasics(){ + using (var animStack = CreateObject ("anim stack")) { + FbxCollectionTest.GenericTests (animStack, Manager); + + // test description + animStack.Description.Set ("this is an anim stack"); + Assert.AreEqual ("this is an anim stack", animStack.Description.Get ()); + + // test SetLocalTimeSpan (make sure it doesn't crash) + animStack.SetLocalTimeSpan(new FbxTimeSpan()); + + // test GetLocalTimeSpan + FbxTimeSpan timeSpan = animStack.GetLocalTimeSpan(); + Assert.IsInstanceOf (timeSpan); + + // test SetLocalTimeSpan with null + Assert.That (() => { animStack.SetLocalTimeSpan(null); }, Throws.Exception.TypeOf()); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimStackTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimStackTest.cs.meta new file mode 100644 index 0000000000..55dd189988 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAnimStackTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c86ae7ace04574feb866ca2d1d470c9b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAxisSystemTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAxisSystemTest.cs new file mode 100644 index 0000000000..182e5d558d --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAxisSystemTest.cs @@ -0,0 +1,104 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + /// + /// Run some tests that any vector type should be able to pass. + /// If you add tests here, you probably want to add them to the other + /// FbxDouble* test classes. + /// + internal class FbxAxisSystemTest : TestBase + { + [Test] + public void TestEquality() { + var a = FbxAxisSystem.MayaZUp; + var b = FbxAxisSystem.MayaYUp; + var acopy = new FbxAxisSystem(FbxAxisSystem.EPreDefinedAxisSystem.eMayaZUp); + EqualityTester.TestEquality(a, b, acopy); + } + + /// + /// Test the basics. Subclasses should override and add some calls + /// e.g. to excercise all the constructors. + /// + [Test] + public void TestBasics() + { + // Use all the constants. + using (FbxAxisSystem.MayaZUp) { } + using (FbxAxisSystem.MayaYUp) { } + using (FbxAxisSystem.Max) { } + using (FbxAxisSystem.Motionbuilder) { } + using (FbxAxisSystem.OpenGL) { } + using (FbxAxisSystem.DirectX) { } + using (FbxAxisSystem.Lightwave) { } + + // Use this one again (make sure we don't crash) */ + using (FbxAxisSystem.MayaZUp) { } + + // Test the copy constructor. + var axes = new FbxAxisSystem(FbxAxisSystem.Lightwave); + + // Test equality functions. + Assert.That(axes.GetHashCode(), Is.LessThan(0)); + Assert.AreEqual(FbxAxisSystem.Lightwave, axes); + Assert.IsFalse(FbxAxisSystem.MayaZUp == axes); + Assert.IsTrue(FbxAxisSystem.MayaZUp != axes); + + // Test the predefined-enum constructor. + Assert.AreEqual(axes, new FbxAxisSystem(FbxAxisSystem.EPreDefinedAxisSystem.eLightwave)); + axes.Dispose(); + + // Test the no-arg constructor. + using (new FbxAxisSystem()) { } + + // Construct from the three axes. Test we can get the three axes, including the sign. + axes = new FbxAxisSystem( + FbxAxisSystem.EUpVector.eYAxis, + FbxAxisSystem.EFrontVector.eParityOddNegative, // negative! check the sign goes through + FbxAxisSystem.ECoordSystem.eLeftHanded); + Assert.AreEqual(FbxAxisSystem.EUpVector.eYAxis, axes.GetUpVector()); + Assert.AreEqual(FbxAxisSystem.EFrontVector.eParityOddNegative, axes.GetFrontVector()); + Assert.AreEqual(FbxAxisSystem.ECoordSystem.eLeftHanded, axes.GetCoorSystem()); + + } + + [Test] + public void TestConvertScene() + { + var axes = new FbxAxisSystem( + FbxAxisSystem.EUpVector.eYAxis, + FbxAxisSystem.EFrontVector.eParityOddNegative, // negative! check the sign goes through + FbxAxisSystem.ECoordSystem.eLeftHanded); + using (var Manager = FbxManager.Create()) { + var scene = FbxScene.Create(Manager, "scene"); + axes.ConvertScene(scene); + } + } + + [Test] + public void TestDeepConvertScene() + { + var axes = new FbxAxisSystem( + FbxAxisSystem.EUpVector.eYAxis, + FbxAxisSystem.EFrontVector.eParityOddNegative, // negative! check the sign goes through + FbxAxisSystem.ECoordSystem.eLeftHanded); + using (var Manager = FbxManager.Create()) { + var scene = FbxScene.Create(Manager, "scene"); + try { + axes.DeepConvertScene(scene); + } catch(System.EntryPointNotFoundException) { + Assert.Ignore("Testing against FBX SDK that doesn't have DeepConvertScene"); + } + } + } + + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAxisSystemTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAxisSystemTest.cs.meta new file mode 100644 index 0000000000..35f5a925b4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxAxisSystemTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bc74d43dae29d4ac9990b86333c4845c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBindingTableTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBindingTableTest.cs new file mode 100644 index 0000000000..a80c1f201f --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBindingTableTest.cs @@ -0,0 +1,59 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxBindingTableTest : Base + { + [Test] + public void TestBasics() { + var table = FbxBindingTable.Create(Manager, "table"); + + // Call the getters, make sure they get. + GetSetProperty(table.DescAbsoluteURL, "file:///dev/null"); + GetSetProperty(table.DescRelativeURL, "shader.glsl"); + GetSetProperty(table.DescTAG, "user"); + + // Test dispose. + var entry = table.AddNewEntry(); + DisposeTester.TestDispose(entry); + + // Test the views. + entry = table.AddNewEntry(); + + var propertyView = new FbxPropertyEntryView(entry, false); + Assert.IsFalse(propertyView.IsValid()); + DisposeTester.TestDispose(propertyView); + + propertyView = new FbxPropertyEntryView(entry, true, true); + Assert.IsTrue(propertyView.IsValid()); + Assert.AreEqual("FbxPropertyEntry", propertyView.EntryType()); + propertyView.SetProperty("property"); + Assert.AreEqual("property", propertyView.GetProperty()); + + var semanticView = new FbxSemanticEntryView(entry, false); + Assert.IsFalse(semanticView.IsValid()); + DisposeTester.TestDispose(semanticView); + + semanticView = new FbxSemanticEntryView(entry, false, true); + Assert.IsTrue(semanticView.IsValid()); + Assert.AreEqual("FbxSemanticEntry", semanticView.EntryType()); + semanticView.SetSemantic("semantic"); + Assert.AreEqual("semantic", semanticView.GetSemantic()); + Assert.AreEqual(0, semanticView.GetIndex()); + Assert.AreEqual("semantic", semanticView.GetSemantic(false)); + } + + void GetSetProperty(FbxPropertyString prop, string value) { + prop.Set(value); + Assert.AreEqual(value, prop.Get()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBindingTableTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBindingTableTest.cs.meta new file mode 100644 index 0000000000..cb102bc5f7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBindingTableTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d1956db2fbc454acea0013fd9f682465 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeChannelTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeChannelTest.cs new file mode 100644 index 0000000000..0851cc5010 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeChannelTest.cs @@ -0,0 +1,62 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxBlendShapeChannelTest : Base + { + [Test] + public void TestBasics () + { + using (var blendShapeChannel = CreateObject ()) { + int origCount = blendShapeChannel.GetTargetShapeCount (); + + FbxShape shape = FbxShape.Create (Manager, "shape"); + Assert.IsTrue(blendShapeChannel.AddTargetShape (shape)); + + Assert.AreEqual (origCount + 1, blendShapeChannel.GetTargetShapeCount ()); + Assert.AreEqual (shape, blendShapeChannel.GetTargetShape (origCount)); + Assert.AreEqual (origCount, blendShapeChannel.GetTargetShapeIndex (shape)); + + // test RemoveTargetShape + Assert.AreEqual (shape, blendShapeChannel.RemoveTargetShape (shape)); + Assert.IsNull (blendShapeChannel.GetTargetShape (origCount)); + + // test AddTargetShape with double doesn't crash + blendShapeChannel.AddTargetShape (shape, 45); + + // test null + Assert.That (() => { blendShapeChannel.AddTargetShape (null); }, Throws.Exception.TypeOf()); + Assert.That (() => { blendShapeChannel.RemoveTargetShape (null); }, Throws.Exception.TypeOf()); + + // test destroyed + shape.Destroy(); + Assert.That (() => { blendShapeChannel.AddTargetShape (shape); }, Throws.Exception.TypeOf()); + Assert.That (() => { blendShapeChannel.RemoveTargetShape (shape); }, Throws.Exception.TypeOf()); + + // test GetDeformPercent + TestGetter (blendShapeChannel.DeformPercent); + + // test SetBlendShapeDeformer() + FbxBlendShape blendShape = FbxBlendShape.Create(Manager, "blendShape"); + Assert.IsTrue(blendShapeChannel.SetBlendShapeDeformer (blendShape)); + Assert.AreEqual (blendShape, blendShapeChannel.GetBlendShapeDeformer ()); + + // test null + Assert.That (() => { blendShapeChannel.SetBlendShapeDeformer(null); }, Throws.Exception.TypeOf()); + + // test destroyed + blendShape = FbxBlendShape.Create(Manager, "blendShape2"); + blendShape.Destroy (); + Assert.That (() => { blendShapeChannel.SetBlendShapeDeformer (blendShape); }, Throws.Exception.TypeOf()); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeChannelTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeChannelTest.cs.meta new file mode 100644 index 0000000000..50619026af --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeChannelTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a43032c7ae5a843118261aa40ed8d5ea +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeTest.cs new file mode 100644 index 0000000000..c13f2aa7ba --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeTest.cs @@ -0,0 +1,61 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxBlendShapeTest : FbxDeformerTestBase + { + + [Test] + public void TestBasics () + { + using (var fbxBlendShape = CreateObject ()) { + // test FbxDeformer functions + TestBasics(fbxBlendShape, FbxDeformer.EDeformerType.eBlendShape); + + int origCount = fbxBlendShape.GetBlendShapeChannelCount (); + + // test AddBlendShapeChannel() + var fbxBlendShapeChannel = FbxBlendShapeChannel.Create (Manager, "blendShapeChannel"); + fbxBlendShape.AddBlendShapeChannel (fbxBlendShapeChannel); + + Assert.AreEqual (origCount+1, fbxBlendShape.GetBlendShapeChannelCount ()); + Assert.AreEqual (fbxBlendShapeChannel, fbxBlendShape.GetBlendShapeChannel (origCount)); + + // test RemoveBlendShapeChannel() + Assert.AreEqual(fbxBlendShapeChannel, fbxBlendShape.RemoveBlendShapeChannel(fbxBlendShapeChannel)); + // test already removed + Assert.AreEqual(null, fbxBlendShape.RemoveBlendShapeChannel(fbxBlendShapeChannel)); + + // test null + Assert.That (() => { fbxBlendShape.AddBlendShapeChannel (null); }, Throws.Exception.TypeOf()); + Assert.That (() => { fbxBlendShape.RemoveBlendShapeChannel (null); }, Throws.Exception.TypeOf()); + + // test destroyed + fbxBlendShapeChannel.Destroy(); + Assert.That (() => { fbxBlendShape.AddBlendShapeChannel (fbxBlendShapeChannel); }, Throws.Exception.TypeOf()); + Assert.That (() => { fbxBlendShape.RemoveBlendShapeChannel (fbxBlendShapeChannel); }, Throws.Exception.TypeOf()); + + // test SetGeometry() + FbxGeometry fbxGeom = FbxGeometry.Create(Manager, "geometry"); + Assert.IsTrue(fbxBlendShape.SetGeometry (fbxGeom)); + Assert.AreEqual (fbxGeom, fbxBlendShape.GetGeometry ()); + + // test null + Assert.That (() => { fbxBlendShape.SetGeometry (null); }, Throws.Exception.TypeOf()); + + // test destroyed + fbxGeom = FbxGeometry.Create(Manager, "geometry2"); + fbxGeom.Destroy(); + Assert.That (() => { fbxBlendShape.SetGeometry (fbxGeom); }, Throws.Exception.TypeOf()); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeTest.cs.meta new file mode 100644 index 0000000000..69633ced17 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxBlendShapeTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ddcf556d25d79404182c6f056fdc5b1c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCameraTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCameraTest.cs new file mode 100644 index 0000000000..006bf4a390 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCameraTest.cs @@ -0,0 +1,85 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxCameraTest : FbxNodeAttributeBase + { + [Test] + public void TestBasics() + { + using (var fbxCamera = CreateObject ("camera")) { + + base.TestBasics(fbxCamera, FbxNodeAttribute.EType.eCamera); + + // test SetAspect + fbxCamera.SetAspect (FbxCamera.EAspectRatioMode.eFixedResolution, 100, 200); + Assert.AreEqual (FbxCamera.EAspectRatioMode.eFixedResolution, fbxCamera.GetAspectRatioMode ()); + + // test SetAspect with invalid width/height (make sure it doesn't crash) + fbxCamera.SetAspect (FbxCamera.EAspectRatioMode.eFixedResolution, -100, 200); + fbxCamera.SetAspect (FbxCamera.EAspectRatioMode.eFixedResolution, 100, -200); + + // Test SetApertureWidth + fbxCamera.SetApertureWidth(100.0); + Assert.AreEqual (100, (int)fbxCamera.GetApertureWidth ()); + // test with negative width + fbxCamera.SetApertureWidth(-100.0); + + // Test SetApertureHeight + fbxCamera.SetApertureHeight(100.0); + Assert.AreEqual (100, (int)fbxCamera.GetApertureHeight ()); + // test with negative height + fbxCamera.SetApertureHeight(-100.0); + + // Test SetApertureMode + fbxCamera.SetApertureMode(FbxCamera.EApertureMode.eFocalLength); + Assert.AreEqual (FbxCamera.EApertureMode.eFocalLength, fbxCamera.GetApertureMode ()); + + // Test SetNearPlane + fbxCamera.SetNearPlane(10.0); + Assert.AreEqual (10, (int)fbxCamera.GetNearPlane ()); + // test with negative value + fbxCamera.SetNearPlane(-10.0); + + // Test SetFarPlane + fbxCamera.SetFarPlane(10.0); + Assert.AreEqual (10, (int)fbxCamera.GetFarPlane ()); + // test with negative value + fbxCamera.SetFarPlane(-10.0); + + // Test ComputeFocalLength + double result = fbxCamera.ComputeFocalLength(90); + Assert.GreaterOrEqual (result, 0); + // test with negative value + result = fbxCamera.ComputeFocalLength(-90); + Assert.LessOrEqual (result, 0); + } + } + + [Test] + public void TestProperties(){ + using (var fbxCamera = CreateObject ("camera")) { + // test getting the properties + TestGetter (fbxCamera.ProjectionType); + TestGetter (fbxCamera.FilmAspectRatio); + TestGetter (fbxCamera.FocalLength); + TestGetter (fbxCamera.AspectHeight); + TestGetter (fbxCamera.AspectWidth); + TestGetter (fbxCamera.NearPlane); + TestGetter (fbxCamera.FieldOfView); + TestGetter (fbxCamera.GateFit); + TestGetter (fbxCamera.FilmOffsetX); + TestGetter (fbxCamera.FilmOffsetY); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCameraTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCameraTest.cs.meta new file mode 100644 index 0000000000..438f5fe208 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCameraTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6d81f6379f6914e1db34d70707361e86 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxClusterTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxClusterTest.cs new file mode 100644 index 0000000000..44a4fb2833 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxClusterTest.cs @@ -0,0 +1,71 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxClusterTest : Base + { + + [Test] + public void TestBasics () + { + using (var fbxCluster = FbxCluster.Create (Manager, "")) { + + // test set link mode + fbxCluster.SetLinkMode (FbxCluster.ELinkMode.eAdditive); + Assert.AreEqual (FbxCluster.ELinkMode.eAdditive, fbxCluster.GetLinkMode ()); + + // test set link + FbxNode node = FbxNode.Create(Manager, "node"); + fbxCluster.SetLink (node); + Assert.AreEqual (node, fbxCluster.GetLink ()); + // test set null link + Assert.That (() => { fbxCluster.SetLink(null); }, Throws.Exception.TypeOf()); + + // test add control point index (make sure it doesn't crash) + fbxCluster.AddControlPointIndex(0, 0); + fbxCluster.AddControlPointIndex(-1, 0); // doesn't get added (probably because -1 is not a valid index) + fbxCluster.AddControlPointIndex(0, -1.1); + + Assert.AreEqual (2, fbxCluster.GetControlPointIndicesCount ()); + + fbxCluster.SetControlPointIWCount(-1); // test that setting invalid doesn't cause crash + fbxCluster.SetControlPointIWCount (10); + Assert.AreEqual (10, fbxCluster.GetControlPointIndicesCount ()); + + Assert.AreEqual (0, fbxCluster.GetControlPointIndexAt (0)); + Assert.AreEqual (0, fbxCluster.GetControlPointWeightAt (0)); + Assert.AreEqual (0, fbxCluster.GetControlPointIndexAt (1)); + Assert.AreEqual (-1.1, fbxCluster.GetControlPointWeightAt (1)); + + // test set transform matrix + FbxAMatrix matrix = new FbxAMatrix(); + fbxCluster.SetTransformMatrix (matrix); + FbxAMatrix returnMatrix = new FbxAMatrix(); + Assert.AreEqual (matrix, fbxCluster.GetTransformMatrix (returnMatrix)); + // test set null transform matrix + Assert.That (() => { fbxCluster.SetTransformMatrix (null); }, Throws.Exception.TypeOf()); + // test get null transform matrix + Assert.That (() => { fbxCluster.GetTransformMatrix (null); }, Throws.Exception.TypeOf()); + + // test set transform link matrix + matrix = new FbxAMatrix(); + fbxCluster.SetTransformLinkMatrix (matrix); + FbxAMatrix returnMatrix2 = new FbxAMatrix(); + Assert.AreEqual (matrix, fbxCluster.GetTransformLinkMatrix (returnMatrix2)); + // test set null transform link matrix + Assert.That (() => { fbxCluster.SetTransformLinkMatrix (null); }, Throws.Exception.TypeOf()); + // test get null transform link matrix + Assert.That (() => { fbxCluster.GetTransformLinkMatrix (null); }, Throws.Exception.TypeOf()); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxClusterTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxClusterTest.cs.meta new file mode 100644 index 0000000000..961f605c74 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxClusterTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 30278e86a0e2e4e7db1c8ab8fbeab423 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCollectionTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCollectionTest.cs new file mode 100644 index 0000000000..cdf0e997ad --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCollectionTest.cs @@ -0,0 +1,51 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxCollectionTest : Base + { + + public static void GenericTests(T fbxCollection, FbxManager manager) where T : FbxCollection + { + // TODO: FbxScene has a member count of 3 instead of one (even after clearing), is this normal? + int initialMemberCount = fbxCollection.GetMemberCount (); + + // test AddMember + FbxObject obj = FbxObject.Create (manager, ""); + bool result = fbxCollection.AddMember (obj); + Assert.IsTrue (result); + Assert.AreEqual(initialMemberCount+1, fbxCollection.GetMemberCount()); + + // test Clear + fbxCollection.Clear (); + Assert.AreEqual (initialMemberCount, fbxCollection.GetMemberCount()); + + // test GetAnimLayerMember() + fbxCollection.AddMember(FbxAnimLayer.Create(manager, "animLayer")); + var animLayer = fbxCollection.GetAnimLayerMember (); + Assert.IsInstanceOf (animLayer); + + var animLayer2 = fbxCollection.GetAnimLayerMember (0); + + Assert.AreEqual (animLayer, animLayer2); + + // check invalid + Assert.IsNull(fbxCollection.GetAnimLayerMember (1)); + Assert.IsNull(fbxCollection.GetAnimLayerMember (-1)); + } + + [Test] + public void TestBasics () + { + GenericTests (CreateObject ("fbx collection"), Manager); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCollectionTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCollectionTest.cs.meta new file mode 100644 index 0000000000..2c405698f9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxCollectionTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: de0c4e8de7a0f48d5b35cee44fc6006d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxColorTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxColorTest.cs new file mode 100644 index 0000000000..d36470a66d --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxColorTest.cs @@ -0,0 +1,81 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxColorTest + { + [Test] + public void TestEquality() + { + EqualityTester.TestEquality( + new FbxColor(0.0, 0.1, 0.2, 0.3), + new FbxColor(0.3, 0.2, 0.1, 0.0), + new FbxColor(0.0, 0.1, 0.2, 0.3)); + } + + /// + /// Test the basics. Subclasses should override and add some calls + /// e.g. to excercise all the constructors. + /// + [Test] + public void TestBasics() + { + FbxColor c; + c = new FbxColor(0.1, 0.2, 0.3, 0.5); + Assert.AreEqual(0.1, c.mRed); + Assert.AreEqual(0.2, c.mGreen); + Assert.AreEqual(0.3, c.mBlue); + Assert.AreEqual(0.5, c.mAlpha); + + c = new FbxColor(0.1, 0.2, 0.3); + Assert.AreEqual(0.1, c.mRed); + Assert.AreEqual(0.2, c.mGreen); + Assert.AreEqual(0.3, c.mBlue); + Assert.AreEqual(1.0, c.mAlpha); + + c = new FbxColor(new FbxDouble3(0.1, 0.2, 0.3), 0.5); + Assert.AreEqual(0.1, c.mRed); + Assert.AreEqual(0.2, c.mGreen); + Assert.AreEqual(0.3, c.mBlue); + Assert.AreEqual(0.5, c.mAlpha); + + c = new FbxColor(new FbxDouble4(0.1, 0.2, 0.3, 0.5)); + Assert.AreEqual(0.1, c.mRed); + Assert.AreEqual(0.2, c.mGreen); + Assert.AreEqual(0.3, c.mBlue); + Assert.AreEqual(0.5, c.mAlpha); + + Assert.IsTrue(c.IsValid()); + c.mRed = -1; + c.mGreen = 1e6; + Assert.IsFalse(c.IsValid()); + + c.Set(1, 2, 3, 5); + Assert.AreEqual(1, c.mRed); + Assert.AreEqual(2, c.mGreen); + Assert.AreEqual(3, c.mBlue); + Assert.AreEqual(5, c.mAlpha); + Assert.AreEqual(1, c[0]); + Assert.AreEqual(2, c[1]); + Assert.AreEqual(3, c[2]); + Assert.AreEqual(5, c[3]); + Assert.IsFalse(c.IsValid()); + + c[0] = 0.1; + Assert.AreEqual(0.1, c[0]); + c[1] = 0.2; + Assert.AreEqual(0.2, c[1]); + c[2] = 0.3; + Assert.AreEqual(0.3, c[2]); + c[3] = 0.5; + Assert.AreEqual(0.5, c[3]); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxColorTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxColorTest.cs.meta new file mode 100644 index 0000000000..543a93869a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxColorTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d4a1e82fe56374530968c82656c95b45 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxConstraintTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxConstraintTest.cs new file mode 100644 index 0000000000..7bdcf9bc2c --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxConstraintTest.cs @@ -0,0 +1,331 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal abstract class FbxConstraintTestBase : Base where T : FbxConstraint + { + protected virtual FbxConstraint.EType ConstraintType { get { return FbxConstraint.EType.eUnknown; } } + + [Test] + public virtual void TestBasics () + { + T constraint = CreateObject ("constraint"); + + TestGetter (constraint.Active); + TestGetter (constraint.Lock); + TestGetter (constraint.Weight); + TestGetter (constraint.GetConstrainedObject ()); + TestGetter (constraint.GetConstraintSource (-1)); + TestGetter (constraint.GetConstraintSource (0)); + TestGetter (constraint.GetSourceWeight (FbxNode.Create (Manager, "Node"))); + Assert.That (() => constraint.GetSourceWeight (null), Throws.Exception.TypeOf ()); + Assert.That (constraint.GetConstraintSourceCount (), Is.EqualTo (0)); + Assert.That (constraint.GetConstraintType (), Is.EqualTo (ConstraintType)); + } + } + + /// + /// For testing functions that classes that derive from FbxConstraint share, but are not implemented in FbxConstraint. + /// + internal abstract class FbxConstraintDescendantTestBase : FbxConstraintTestBase where T : FbxConstraint + { + static System.Reflection.MethodInfo s_AddConstraintSource; + static System.Reflection.MethodInfo s_AddConstraintSourceDouble; + static System.Reflection.MethodInfo s_SetConstrainedObject; + + static FbxConstraintDescendantTestBase () + { + s_AddConstraintSource = typeof(T).GetMethod ("AddConstraintSource", new System.Type[] { typeof(FbxObject) }); + s_AddConstraintSourceDouble = typeof(T).GetMethod ("AddConstraintSource", new System.Type[] { + typeof(FbxObject), + typeof(double) + }); + s_SetConstrainedObject = typeof(T).GetMethod ("SetConstrainedObject", new System.Type[] { typeof(FbxObject) }); + } + + public void AddConstraintSourceDouble (T instance, FbxObject obj, double weight) + { + Invoker.Invoke (s_AddConstraintSourceDouble, instance, obj, weight); + } + + public void AddConstraintSource (T instance, FbxObject obj) + { + Invoker.Invoke (s_AddConstraintSource, instance, obj); + } + + public void SetConstrainedObject (T instance, FbxObject obj) + { + Invoker.Invoke (s_SetConstrainedObject, instance, obj); + } + + [Test] + public virtual void TestAddConstraintSource () + { + using (var constraint = CreateObject ("constraint")) { + Assert.That (() => AddConstraintSource (constraint, null), Throws.Exception.TypeOf ()); + Assert.That (constraint.GetConstraintSourceCount (), Is.EqualTo (0)); + + var fbxNode = FbxNode.Create (Manager, "rootnode"); + + AddConstraintSource (constraint, fbxNode); + Assert.That (constraint.GetConstraintSource (0), Is.EqualTo (fbxNode)); + Assert.That (constraint.GetConstraintSourceCount (), Is.EqualTo (1)); + + fbxNode = FbxNode.Create (Manager, "node2"); + AddConstraintSourceDouble (constraint, fbxNode, 2.0); + Assert.That (constraint.GetConstraintSource (1), Is.EqualTo (fbxNode)); + Assert.That (constraint.GetConstraintSourceCount (), Is.EqualTo (2)); + } + } + + [Test] + public virtual void TestSetConstrainedObject () + { + if (ConstraintType == FbxConstraint.EType.eUnknown) { + return; + } + + using (var constraint = CreateObject ("constraint")) { + Assert.That (() => SetConstrainedObject (constraint, null), Throws.Exception.TypeOf ()); + + var fbxNode = FbxNode.Create (Manager, "rootnode"); + + SetConstrainedObject (constraint, fbxNode); + Assert.That (constraint.GetConstrainedObject (), Is.EqualTo (fbxNode)); + } + } + } + + + internal class FbxConstraintTest : FbxConstraintTestBase + { + + } + + internal class FbxConstraintAimTest : FbxConstraintDescendantTestBase + { + protected override FbxConstraint.EType ConstraintType { + get { + return FbxConstraint.EType.eAim; + } + } + + [Test] + public void TestGetters () + { + using (var constraint = FbxConstraintAim.Create (Manager, "aimConstraint")) { + TestGetter (constraint.AffectX); + TestGetter (constraint.AffectY); + TestGetter (constraint.AffectZ); + TestGetter (constraint.AimVector); + TestGetter (constraint.RotationOffset); + TestGetter (constraint.UpVector); + TestGetter (constraint.WorldUpType); + TestGetter (constraint.WorldUpVector); + } + } + + [Test] + public void TestWorldUpObject () + { + using (var constraint = FbxConstraintAim.Create (Manager, "aimConstraint")) { + Assert.That (() => constraint.SetWorldUpObject (null), Throws.Exception.TypeOf ()); + + var fbxNode = FbxNode.Create (Manager, "rootnode"); + + constraint.SetWorldUpObject (fbxNode); + Assert.That (constraint.GetWorldUpObject (), Is.EqualTo (fbxNode)); + } + } + } + + internal class FbxConstraintParentTest : FbxConstraintDescendantTestBase + { + protected override FbxConstraint.EType ConstraintType { + get { + return FbxConstraint.EType.eParent; + } + } + + [Test] + public void TestGetters () + { + using (var constraint = FbxConstraintParent.Create (Manager, "pConstraint")) { + TestGetter (constraint.AffectRotationX); + TestGetter (constraint.AffectRotationY); + TestGetter (constraint.AffectRotationZ); + TestGetter (constraint.AffectScalingX); + TestGetter (constraint.AffectScalingY); + TestGetter (constraint.AffectScalingZ); + TestGetter (constraint.AffectTranslationX); + TestGetter (constraint.AffectTranslationY); + TestGetter (constraint.AffectTranslationZ); + } + } + + [Test] + public void TestSetTranslationOffset() + { + using (var constraint = FbxConstraintParent.Create(Manager, "pConstraint")) + { + // test valid input + var fbxNode = FbxNode.Create(Manager, "rootnode"); + var fbxNode2 = FbxNode.Create(Manager, "node2"); + + var offset = new FbxVector4(1, 2, 3); + constraint.AddConstraintSource(fbxNode); + constraint.SetTranslationOffset(fbxNode, offset); + + var offset2 = new FbxVector4(0.5, 0.5, 0.25); + constraint.AddConstraintSource(fbxNode2, 2.0); + constraint.SetTranslationOffset(fbxNode2, offset2); + + Assert.That(constraint.GetTranslationOffset(fbxNode), Is.EqualTo(offset)); + Assert.That(constraint.GetTranslationOffset(fbxNode2), Is.EqualTo(offset2)); + Assert.That(constraint.GetTranslationOffsetProperty(fbxNode2).IsValid(), Is.True); + + // test null input + Assert.That(() => constraint.SetTranslationOffset(null, offset), Throws.Exception.TypeOf()); + Assert.That(() => constraint.GetTranslationOffset(null), Throws.Exception.TypeOf()); + Assert.That(() => constraint.GetTranslationOffsetProperty(null), Throws.Exception.TypeOf()); + + // test on non source fbx node + var fbxNode3 = FbxNode.Create(Manager, "node3"); + var offset3 = new FbxVector4(1, 1, 1); + + Assert.That(() => constraint.SetTranslationOffset(fbxNode3, offset3), Throws.Nothing); + Assert.That(constraint.GetTranslationOffset(fbxNode3), Is.EqualTo(new FbxVector4(0,0,0))); + } + } + + [Test] + public void TestSetRotationOffset() + { + using (var constraint = FbxConstraintParent.Create(Manager, "pConstraint")) + { + // test valid input + var fbxNode = FbxNode.Create(Manager, "rootnode"); + var fbxNode2 = FbxNode.Create(Manager, "node2"); + + var offset = new FbxVector4(1, 2, 3); + constraint.AddConstraintSource(fbxNode); + constraint.SetRotationOffset(fbxNode, offset); + + var offset2 = new FbxVector4(0.5, 0.5, 0.25); + constraint.AddConstraintSource(fbxNode2, 2.0); + constraint.SetRotationOffset(fbxNode2, offset2); + + Assert.That(constraint.GetRotationOffset(fbxNode), Is.EqualTo(offset)); + Assert.That(constraint.GetRotationOffset(fbxNode2), Is.EqualTo(offset2)); + Assert.That(constraint.GetRotationOffsetProperty(fbxNode2).IsValid(), Is.True); + + // test null input + Assert.That(() => constraint.SetRotationOffset(null, offset), Throws.Exception.TypeOf()); + Assert.That(() => constraint.GetRotationOffset(null), Throws.Exception.TypeOf()); + Assert.That(() => constraint.GetRotationOffsetProperty(null), Throws.Exception.TypeOf()); + + // test on non source fbx node + var fbxNode3 = FbxNode.Create(Manager, "node3"); + var offset3 = new FbxVector4(1, 1, 1); + + Assert.That(() => constraint.SetRotationOffset(fbxNode3, offset3), Throws.Nothing); + Assert.That(constraint.GetRotationOffset(fbxNode3), Is.EqualTo(new FbxVector4(0, 0, 0))); + } + } + } + + internal class FbxConstraintPositionTest : FbxConstraintDescendantTestBase + { + protected override FbxConstraint.EType ConstraintType { + get { + return FbxConstraint.EType.ePosition; + } + } + + [Test] + public void TestGetters () + { + using (var constraint = FbxConstraintPosition.Create (Manager, "posConstraint")) { + TestGetter (constraint.AffectX); + TestGetter (constraint.AffectY); + TestGetter (constraint.AffectZ); + TestGetter (constraint.Translation); + } + } + + [Test] + public override void TestAddConstraintSource () + { + // overriding implementation because FbxConstraintPosition also has a RemoveConstraintSource() function + + using (var constraint = FbxConstraintPosition.Create (Manager, "pConstraint")) { + Assert.That (() => constraint.AddConstraintSource (null), Throws.Exception.TypeOf ()); + Assert.That (constraint.GetConstraintSourceCount (), Is.EqualTo (0)); + + var fbxNode = FbxNode.Create (Manager, "rootnode"); + + constraint.AddConstraintSource (fbxNode); + Assert.That (constraint.GetConstraintSource (0), Is.EqualTo (fbxNode)); + Assert.That (constraint.GetConstraintSourceCount (), Is.EqualTo (1)); + + var fbxNode2 = FbxNode.Create (Manager, "node2"); + constraint.AddConstraintSource (fbxNode2, 2); + Assert.That (constraint.GetConstraintSource (1), Is.EqualTo (fbxNode2)); + Assert.That (constraint.GetConstraintSourceCount (), Is.EqualTo (2)); + + Assert.That (() => constraint.RemoveConstraintSource (null), Throws.Exception.TypeOf ()); + + constraint.RemoveConstraintSource (fbxNode); + Assert.That (constraint.GetConstraintSourceCount (), Is.EqualTo (1)); + Assert.That (constraint.GetConstraintSource (0), Is.EqualTo (fbxNode2)); + } + } + } + + internal class FbxConstraintRotationTest : FbxConstraintDescendantTestBase + { + protected override FbxConstraint.EType ConstraintType { + get { + return FbxConstraint.EType.eRotation; + } + } + + [Test] + public void TestGetters () + { + using (var constraint = FbxConstraintRotation.Create (Manager, "rConstraint")) { + TestGetter (constraint.AffectX); + TestGetter (constraint.AffectY); + TestGetter (constraint.AffectZ); + TestGetter (constraint.Rotation); + } + } + } + + internal class FbxConstraintScaleTest : FbxConstraintDescendantTestBase + { + protected override FbxConstraint.EType ConstraintType { + get { + return FbxConstraint.EType.eScale; + } + } + + [Test] + public void TestGetters () + { + using (var constraint = FbxConstraintScale.Create (Manager, "sConstraint")) { + TestGetter (constraint.AffectX); + TestGetter (constraint.AffectY); + TestGetter (constraint.AffectZ); + TestGetter (constraint.Scaling); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxConstraintTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxConstraintTest.cs.meta new file mode 100644 index 0000000000..7a847cdb76 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxConstraintTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec173be7ff1734089b42766a2a564d99 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDataTypeTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDataTypeTest.cs new file mode 100644 index 0000000000..0102daa2e1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDataTypeTest.cs @@ -0,0 +1,168 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxDataTypeTest + { + [Test] + public void TestEquality() + { + // Left here in case we add equality operations back in. + // For now, equality is just reference equality. + EqualityTester.TestEquality(Globals.FbxBoolDT, Globals.FbxFloatDT, Globals.FbxBoolDT); + } + + [Test] + public void BasicTests () + { + // Try all the constructors; make sure they don't crash + new FbxDataType(); + var v = Globals.FbxBoolDT; + var v2 = new FbxDataType(v); + + // Call the basic functions, make sure they're reasonable. + Assert.IsTrue(v.Valid()); + Assert.AreEqual(EFbxType.eFbxBool, v.ToEnum()); + Assert.AreEqual("Bool", v.GetName()); + Assert.AreEqual("bool", v.GetNameForIO()); + Assert.IsTrue(v.Is(v2)); + + using(new FbxDataType(EFbxType.eFbxFloat)); + using(new FbxDataType("name", EFbxType.eFbxFloat)); + using(new FbxDataType("name", v)); + + // make sure disposing doesn't crash in either case (disposing a handle to a + // global, or disposing a handle to a copy) + v.Dispose(); + v2.Dispose(); + } + + public static void TestGetter(U item) { /* we tested the getter by passing the argument! */ } + + [Test] + public void TestGet() + { + /* Get all the constants. */ + TestGetter(Globals.FbxUndefinedDT); + TestGetter(Globals.FbxBoolDT); + TestGetter(Globals.FbxCharDT); + TestGetter(Globals.FbxUCharDT); + TestGetter(Globals.FbxShortDT); + TestGetter(Globals.FbxUShortDT); + TestGetter(Globals.FbxIntDT); + TestGetter(Globals.FbxUIntDT); + TestGetter(Globals.FbxLongLongDT); + TestGetter(Globals.FbxULongLongDT); + TestGetter(Globals.FbxFloatDT); + TestGetter(Globals.FbxHalfFloatDT); + TestGetter(Globals.FbxDoubleDT); + TestGetter(Globals.FbxDouble2DT); + TestGetter(Globals.FbxDouble3DT); + TestGetter(Globals.FbxDouble4DT); + TestGetter(Globals.FbxDouble4x4DT); + TestGetter(Globals.FbxEnumDT); + TestGetter(Globals.FbxStringDT); + TestGetter(Globals.FbxTimeDT); + TestGetter(Globals.FbxReferenceDT); + TestGetter(Globals.FbxBlobDT); + TestGetter(Globals.FbxDistanceDT); + TestGetter(Globals.FbxDateTimeDT); + TestGetter(Globals.FbxColor3DT); + TestGetter(Globals.FbxColor4DT); + TestGetter(Globals.FbxCompoundDT); + TestGetter(Globals.FbxReferenceObjectDT); + TestGetter(Globals.FbxReferencePropertyDT); + TestGetter(Globals.FbxVisibilityDT); + TestGetter(Globals.FbxVisibilityInheritanceDT); + TestGetter(Globals.FbxUrlDT); + TestGetter(Globals.FbxXRefUrlDT); + TestGetter(Globals.FbxTranslationDT); + TestGetter(Globals.FbxRotationDT); + TestGetter(Globals.FbxScalingDT); + TestGetter(Globals.FbxQuaternionDT); + TestGetter(Globals.FbxLocalTranslationDT); + TestGetter(Globals.FbxLocalRotationDT); + TestGetter(Globals.FbxLocalScalingDT); + TestGetter(Globals.FbxLocalQuaternionDT); + TestGetter(Globals.FbxTransformMatrixDT); + TestGetter(Globals.FbxTranslationMatrixDT); + TestGetter(Globals.FbxRotationMatrixDT); + TestGetter(Globals.FbxScalingMatrixDT); + TestGetter(Globals.FbxMaterialEmissiveDT); + TestGetter(Globals.FbxMaterialEmissiveFactorDT); + TestGetter(Globals.FbxMaterialAmbientDT); + TestGetter(Globals.FbxMaterialAmbientFactorDT); + TestGetter(Globals.FbxMaterialDiffuseDT); + TestGetter(Globals.FbxMaterialDiffuseFactorDT); + TestGetter(Globals.FbxMaterialBumpDT); + TestGetter(Globals.FbxMaterialNormalMapDT); + TestGetter(Globals.FbxMaterialTransparentColorDT); + TestGetter(Globals.FbxMaterialTransparencyFactorDT); + TestGetter(Globals.FbxMaterialSpecularDT); + TestGetter(Globals.FbxMaterialSpecularFactorDT); + TestGetter(Globals.FbxMaterialShininessDT); + TestGetter(Globals.FbxMaterialReflectionDT); + TestGetter(Globals.FbxMaterialReflectionFactorDT); + TestGetter(Globals.FbxMaterialDisplacementDT); + TestGetter(Globals.FbxMaterialVectorDisplacementDT); + TestGetter(Globals.FbxMaterialCommonFactorDT); + TestGetter(Globals.FbxMaterialCommonTextureDT); + TestGetter(Globals.FbxLayerElementUndefinedDT); + TestGetter(Globals.FbxLayerElementNormalDT); + TestGetter(Globals.FbxLayerElementBinormalDT); + TestGetter(Globals.FbxLayerElementTangentDT); + TestGetter(Globals.FbxLayerElementMaterialDT); + TestGetter(Globals.FbxLayerElementTextureDT); + TestGetter(Globals.FbxLayerElementPolygonGroupDT); + TestGetter(Globals.FbxLayerElementUVDT); + TestGetter(Globals.FbxLayerElementVertexColorDT); + TestGetter(Globals.FbxLayerElementSmoothingDT); + TestGetter(Globals.FbxLayerElementCreaseDT); + TestGetter(Globals.FbxLayerElementHoleDT); + TestGetter(Globals.FbxLayerElementUserDataDT); + TestGetter(Globals.FbxLayerElementVisibilityDT); + TestGetter(Globals.FbxAliasDT); + TestGetter(Globals.FbxPresetsDT); + TestGetter(Globals.FbxStatisticsDT); + TestGetter(Globals.FbxTextLineDT); + TestGetter(Globals.FbxUnitsDT); + TestGetter(Globals.FbxWarningDT); + TestGetter(Globals.FbxWebDT); + TestGetter(Globals.FbxActionDT); + TestGetter(Globals.FbxCameraIndexDT); + TestGetter(Globals.FbxCharPtrDT); + TestGetter(Globals.FbxConeAngleDT); + TestGetter(Globals.FbxEventDT); + TestGetter(Globals.FbxFieldOfViewDT); + TestGetter(Globals.FbxFieldOfViewXDT); + TestGetter(Globals.FbxFieldOfViewYDT); + TestGetter(Globals.FbxFogDT); + TestGetter(Globals.FbxHSBDT); + TestGetter(Globals.FbxIKReachTranslationDT); + TestGetter(Globals.FbxIKReachRotationDT); + TestGetter(Globals.FbxIntensityDT); + TestGetter(Globals.FbxLookAtDT); + TestGetter(Globals.FbxOcclusionDT); + TestGetter(Globals.FbxOpticalCenterXDT); + TestGetter(Globals.FbxOpticalCenterYDT); + TestGetter(Globals.FbxOrientationDT); + TestGetter(Globals.FbxRealDT); + TestGetter(Globals.FbxRollDT); + TestGetter(Globals.FbxScalingUVDT); + TestGetter(Globals.FbxShapeDT); + TestGetter(Globals.FbxStringListDT); + TestGetter(Globals.FbxTextureRotationDT); + TestGetter(Globals.FbxTimeCodeDT); + TestGetter(Globals.FbxTimeWarpDT); + TestGetter(Globals.FbxTranslationUVDT); + TestGetter(Globals.FbxWeightDT); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDataTypeTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDataTypeTest.cs.meta new file mode 100644 index 0000000000..70b286568d --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDataTypeTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4853d371260dc4b2e9a82f47321e6cb9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDeformerTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDeformerTest.cs new file mode 100644 index 0000000000..4568736f19 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDeformerTest.cs @@ -0,0 +1,29 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxDeformerTestBase : Base where T : FbxDeformer + { + virtual public void TestBasics(T deformer, FbxDeformer.EDeformerType type) + { + Assert.AreEqual (type, deformer.GetDeformerType ()); + } + } + + internal class FbxDeformerTest : FbxDeformerTestBase { + [Test] + public void TestBasics() + { + TestBasics (CreateObject (), FbxDeformer.EDeformerType.eUnknown); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDeformerTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDeformerTest.cs.meta new file mode 100644 index 0000000000..1255d777a3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDeformerTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 74ff77f0d28074c5099c81a8e1b406fd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentInfoTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentInfoTest.cs new file mode 100644 index 0000000000..3dcc1d8bd3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentInfoTest.cs @@ -0,0 +1,107 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxDocumentInfoTest : Base + { + private static Dictionary m_dataValues = new Dictionary () + { + { "title", ".YvH5peIJMdg" }, + { "subject", "lmESAM8Fe3HV" }, + { "author", "hLsYMCqUekvr" }, + { "revision", "SknI2x=Ncp5P" }, + { "keywords", "netJRGcb8alS" }, + { "comment", ".0pzL-twb6mx" }, + }; + + protected Dictionary dataValues { get { return m_dataValues; } } + + public static FbxDocumentInfo InitDocumentInfo (FbxDocumentInfo docInfo, Dictionary values) + { + docInfo.mTitle = values ["title"]; + docInfo.mSubject = values ["subject"]; + docInfo.mAuthor = values ["author"]; + docInfo.mRevision = values ["revision"]; + docInfo.mKeywords = values ["keywords"]; + docInfo.mComment = values ["comment"]; + + return docInfo; + } + + public static void CheckDocumentInfo (FbxDocumentInfo docInfo, Dictionary values) + { + Assert.AreEqual (docInfo.mTitle, values ["title"]); + Assert.AreEqual (docInfo.mSubject, values ["subject"]); + Assert.AreEqual (docInfo.mAuthor, values ["author"]); + Assert.AreEqual (docInfo.mRevision, values ["revision"]); + Assert.AreEqual (docInfo.mKeywords, values ["keywords"]); + Assert.AreEqual (docInfo.mComment, values ["comment"]); + } + + [Test] + public void TestDocumentInfo () + { + using (FbxDocumentInfo docInfo = CreateObject()) { + CheckDocumentInfo (InitDocumentInfo (docInfo, this.dataValues), this.dataValues); + + TestGetter(docInfo.LastSavedUrl); + TestGetter(docInfo.Url); + TestGetter(docInfo.Original); + TestGetter(docInfo.Original_ApplicationVendor); + TestGetter(docInfo.Original_ApplicationName); + TestGetter(docInfo.Original_ApplicationVersion); + TestGetter(docInfo.Original_FileName); + TestGetter(docInfo.LastSaved); + TestGetter(docInfo.LastSaved_ApplicationVendor); + TestGetter(docInfo.LastSaved_ApplicationName); + TestGetter(docInfo.LastSaved_ApplicationVersion); + TestGetter(docInfo.EmbeddedUrl); + + docInfo.Clear(); + Assert.AreEqual(docInfo.mTitle, ""); + } + } + + [Test] + [Ignore("FbxScene.GetDocumentInfo can return an invalid object and crash.")] + public void TestCrashOnGetDocumentInfo() + { + using (var doc = FbxDocument.Create(Manager, "")) { + using (var docInfo = CreateObject()) { + doc.SetDocumentInfo(docInfo); + docInfo.Destroy(); + + // Crash! Normally FBX disconnects when you destroy an + // object, but not so for the link between a document and + // its document info. + doc.GetDocumentInfo().Url.Get(); + } + } + } + + [Test] + [Ignore("FbxScene.GetSceneInfo can return an invalid object and crash.")] + public void TestCrashOnGetSceneInfo() + { + using (var scene = FbxScene.Create(Manager, "")) { + using (var docInfo = CreateObject()) { + scene.SetSceneInfo(docInfo); + docInfo.Destroy(); + + // Crash! Normally FBX disconnects when you destroy an + // object, but not so for the link between the scene and + // its scene info. + scene.GetSceneInfo().Url.Get(); + } + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentInfoTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentInfoTest.cs.meta new file mode 100644 index 0000000000..67e00aca3f --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentInfoTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c6b15bf1254284caf9aac2c0ca24986b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentTest.cs new file mode 100644 index 0000000000..fa4181ffae --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentTest.cs @@ -0,0 +1,63 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxDocumentTest : Base + { + private static Dictionary m_dataValues = new Dictionary () + { + { "title", "Document Title" }, + { "subject", "Unit Tests for DocumentInfo class." }, + { "author", "Unity Technologies" }, + { "revision", "1.0" }, + { "keywords", "do not crash" }, + { "comment", "Testing the DocumentInfo object." }, + }; + + protected Dictionary dataValues { get { return m_dataValues; } } + + // Override this test and simply ignore it: documents don't fit into scenes. + protected override void TestSceneContainer() { } + + [Test] + public void TestDocumentInfo () + { + using (var doc = CreateObject("RootDoc")) + { + // NOTE: we'll get a ArgumentNullException warning if we use the using + // scope because doc.Clear() will destroy the FbxDocumentInfo. + var docInfo = FbxDocumentInfo.Create (this.Manager, "myDocumentInfo"); + Assert.IsNotNull (docInfo); + + doc.SetDocumentInfo (FbxDocumentInfoTest.InitDocumentInfo (docInfo, this.dataValues)); + + var docInfo2 = doc.GetDocumentInfo (); + Assert.IsNotNull (docInfo2); + + FbxDocumentInfoTest.CheckDocumentInfo (docInfo2, this.dataValues); + + // TODO: test identity + // Assert.AreEqual (docInfo2, docInfo); + // Assert.AreSame (docInfo2, docInfo); + + Assert.That (() => { doc.SetDocumentInfo (null); }, Throws.Exception.TypeOf()); + + // CRASH ALERT!!! remove reference to document info before + // going out of using docInfo scope. + doc.Clear (); + + Assert.IsNull (doc.GetDocumentInfo ()); + + FbxCollectionTest.GenericTests (doc, Manager); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentTest.cs.meta new file mode 100644 index 0000000000..24fc600a17 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDocumentTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b67f709966010433e8918e7b999f339c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble2Test.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble2Test.cs new file mode 100644 index 0000000000..7149aa9c93 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble2Test.cs @@ -0,0 +1,71 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + /// + /// Run some tests that any vector type should be able to pass. + /// If you add tests here, you probably want to add them to the other + /// FbxDouble* test classes. + /// + internal class FbxDouble2Test + { + [Test] + public void TestEquality() + { + EqualityTester.TestEquality( + new FbxDouble2(0, 1), + new FbxDouble2(1, 0), + new FbxDouble2(0, 1)); + } + + /// + /// Test the basics. + /// + [Test] + public void TestBasics() + { + FbxDouble2 v; + + // make sure the no-arg constructor doesn't crash + new FbxDouble2(); + + // Test other constructors + v = new FbxDouble2(1, 2); + var u = new FbxDouble2(v); + Assert.AreEqual(v, u); + u[0] = 5; + Assert.AreEqual(5, u[0]); + Assert.AreEqual(1, v[0]); // check that setting u doesn't set v + var w = new FbxDouble2(3); + Assert.AreEqual(3, w[0]); + Assert.AreEqual(3, w[1]); + + // Test operator[] + v = new FbxDouble2(); + v[0] = 1; + Assert.AreEqual(1, v[0]); + v[1] = 2; + Assert.AreEqual(2, v[1]); + Assert.That(() => v[-1], Throws.Exception.TypeOf()); + Assert.That(() => v[ 2], Throws.Exception.TypeOf()); + Assert.That(() => v[-1] = 5, Throws.Exception.TypeOf()); + Assert.That(() => v[ 2] = 5, Throws.Exception.TypeOf()); + + // Test 2-argument constructor and members X/Y + v = new FbxDouble2(1, 2); + Assert.AreEqual(1, v.X); + Assert.AreEqual(2, v.Y); + v.X = 3; + v.Y = 4; + Assert.AreEqual(3, v.X); + Assert.AreEqual(4, v.Y); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble2Test.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble2Test.cs.meta new file mode 100644 index 0000000000..652884bba0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble2Test.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 82a9c7a12ac804212bd25473c77f89ed +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble3Test.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble3Test.cs new file mode 100644 index 0000000000..2fc2c09598 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble3Test.cs @@ -0,0 +1,78 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + /// + /// Run some tests that any vector type should be able to pass. + /// If you add tests here, you probably want to add them to the other + /// FbxDouble* test classes. + /// + internal class FbxDouble3Test + { + [Test] + public void TestEquality() + { + EqualityTester.TestEquality( + new FbxDouble3(0, 1, 2), + new FbxDouble3(2, 1, 0), + new FbxDouble3(0, 1, 2)); + } + + /// + /// Test the basics. Subclasses should override and add some calls + /// e.g. to excercise all the constructors. + /// + [Test] + public void TestBasics() + { + FbxDouble3 v; + + // make sure the no-arg constructor doesn't crash + new FbxDouble3(); + + // Test other constructors + v = new FbxDouble3(1, 2, 3); + var u = new FbxDouble3(v); + Assert.AreEqual(v, u); + u[0] = 5; + Assert.AreEqual(5, u[0]); + Assert.AreEqual(1, v[0]); // check that setting u doesn't set v + var w = new FbxDouble3(3); + Assert.AreEqual(3, w[0]); + Assert.AreEqual(3, w[1]); + Assert.AreEqual(3, w[2]); + + // Test operator[] + v = new FbxDouble3(); + v[0] = 1; + Assert.AreEqual(1, v[0]); + v[1] = 2; + Assert.AreEqual(2, v[1]); + v[2] = 3; + Assert.AreEqual(3, v[2]); + Assert.That(() => v[-1], Throws.Exception.TypeOf()); + Assert.That(() => v[ 3], Throws.Exception.TypeOf()); + Assert.That(() => v[-1] = 5, Throws.Exception.TypeOf()); + Assert.That(() => v[ 3] = 5, Throws.Exception.TypeOf()); + + // Test 3-argument constructor and members X/Y/Z + v = new FbxDouble3(1, 2, 3); + Assert.AreEqual(1, v.X); + Assert.AreEqual(2, v.Y); + Assert.AreEqual(3, v.Z); + v.X = 3; + v.Y = 4; + v.Z = 5; + Assert.AreEqual(3, v.X); + Assert.AreEqual(4, v.Y); + Assert.AreEqual(5, v.Z); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble3Test.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble3Test.cs.meta new file mode 100644 index 0000000000..de3753490a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble3Test.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d593f364558414481a6ef158306f0c83 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4Test.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4Test.cs new file mode 100644 index 0000000000..b1de9b40b1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4Test.cs @@ -0,0 +1,90 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + /// + /// Run some tests that any vector type should be able to pass. + /// If you add tests here, you probably want to add them to the other + /// FbxDouble* test classes. + /// + internal class FbxDouble4Test + { + [Test] + public void TestEquality() + { + EqualityTester.TestEquality( + new FbxDouble4(0, 1, 2, 3), + new FbxDouble4(3, 2, 1, 0), + new FbxDouble4(0, 1, 2, 3)); + } + + /// + /// Test the basics. Subclasses should override and add some calls + /// e.g. to excercise all the constructors. + /// + [Test] + public void TestBasics() + { + FbxDouble4 v; + + // make sure the no-arg constructor doesn't crash + new FbxDouble4(); + + // Test other constructors + v = new FbxDouble4(1, 2, 3, 4); + var u = new FbxDouble4(v); + Assert.AreEqual(v, u); + u[0] = 5; + Assert.AreEqual(5, u[0]); + Assert.AreEqual(1, v[0]); // check that setting u doesn't set v + var w = new FbxDouble4(3); + Assert.AreEqual(3, w[0]); + Assert.AreEqual(3, w[1]); + Assert.AreEqual(3, w[2]); + Assert.AreEqual(3, w[3]); + + // Test operator[] + v = new FbxDouble4(); + v[0] = 1; + Assert.AreEqual(1, v[0]); + v[1] = 2; + Assert.AreEqual(2, v[1]); + v[2] = 3; + Assert.AreEqual(3, v[2]); + v[3] = 4; + Assert.AreEqual(4, v[3]); + Assert.That(() => v[-1], Throws.Exception.TypeOf()); + Assert.That(() => v[ 4], Throws.Exception.TypeOf()); + Assert.That(() => v[-1] = 5, Throws.Exception.TypeOf()); + Assert.That(() => v[ 4] = 5, Throws.Exception.TypeOf()); + + // Test 4-argument constructor and members X/Y/Z/W + v = new FbxDouble4(1, 2, 3, 4); + Assert.AreEqual(1, v.X); + Assert.AreEqual(2, v.Y); + Assert.AreEqual(3, v.Z); + Assert.AreEqual(4, v.W); + v.X = 3; + v.Y = 4; + v.Z = 5; + v.W = 6; + Assert.AreEqual(3, v.X); + Assert.AreEqual(4, v.Y); + Assert.AreEqual(5, v.Z); + Assert.AreEqual(6, v.W); + + v = new FbxDouble4(5); + Assert.AreEqual(5, v.X); + Assert.AreEqual(5, v.Y); + Assert.AreEqual(5, v.Z); + Assert.AreEqual(5, v.W); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4Test.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4Test.cs.meta new file mode 100644 index 0000000000..5f4bb3a57b --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4Test.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 06cd193a249554b748e8bfe9c1714d82 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4x4Test.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4x4Test.cs new file mode 100644 index 0000000000..ff95b5349a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4x4Test.cs @@ -0,0 +1,108 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxDouble4x4TestBase : TestBase where T: FbxDouble4x4 + { + /// + /// Test element access and Dispose(). + /// The 'mx' matrix is invalid after this. + /// + protected void TestElementAccessAndDispose(T mx) + { + var a = new FbxDouble4(1,2,3,4); + var b = new FbxDouble4(5,6,7,8); + var c = new FbxDouble4(9,8,7,6); + var d = new FbxDouble4(5,4,3,2); + + mx.X = d; + mx.Y = c; + mx.Z = b; + mx.W = a; + Assert.AreEqual(d, mx.X); + Assert.AreEqual(c, mx.Y); + Assert.AreEqual(b, mx.Z); + Assert.AreEqual(a, mx.W); + + mx[0] = a; + mx[1] = b; + mx[2] = c; + mx[3] = d; + Assert.AreEqual(a, mx[0]); + Assert.AreEqual(b, mx[1]); + Assert.AreEqual(c, mx[2]); + Assert.AreEqual(d, mx[3]); + Assert.That(() => mx[-1], Throws.Exception.TypeOf()); + Assert.That(() => mx[ 4], Throws.Exception.TypeOf()); + Assert.That(() => mx[-1] = a, Throws.Exception.TypeOf()); + Assert.That(() => mx[ 4] = a, Throws.Exception.TypeOf()); + + mx.Dispose(); + } + } + + internal class FbxDouble4x4Test : FbxDouble4x4TestBase + { + [Test] + public void TestEquality() + { + var a = new FbxDouble4(1,2,3,4); + var b = new FbxDouble4(5,6,7,8); + var c = new FbxDouble4(9,8,7,6); + var d = new FbxDouble4(5,4,3,2); + EqualityTester.TestEquality( + new FbxDouble4x4(a, b, c, d), + new FbxDouble4x4(d, c, b, a), + new FbxDouble4x4(a, b, c, d)); + } + + /// + /// Test the basics. Subclasses should override and add some calls + /// e.g. to excercise all the constructors. + /// + [Test] + public void TestBasics() + { + FbxDouble4x4 v; + + // We use these later. + var a = new FbxDouble4(1,2,3,4); + var b = new FbxDouble4(5,6,7,8); + var c = new FbxDouble4(9,8,7,6); + var d = new FbxDouble4(5,4,3,2); + + // make sure the no-arg constructor doesn't crash + new FbxDouble4x4(); + + // make sure we can dispose + using (new FbxDouble4x4()) { } + new FbxDouble4x4().Dispose(); + + // Test that we can get elements and we can dispose. + // Also tests the 4-arg constructor. + base.TestElementAccessAndDispose(new FbxDouble4x4()); + + // Test copy constructor + v = new FbxDouble4x4(a,b,c,d); + var u = new FbxDouble4x4(v); + Assert.AreEqual(v, u); + u[0] = c; + Assert.AreEqual(c, u[0]); + Assert.AreEqual(a, v[0]); // check that setting u doesn't set v + + // Test one-element constructor. + v = new FbxDouble4x4(c); + Assert.AreEqual(c, v[0]); + Assert.AreEqual(c, v[1]); + Assert.AreEqual(c, v[2]); + Assert.AreEqual(c, v[3]); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4x4Test.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4x4Test.cs.meta new file mode 100644 index 0000000000..eb683e343d --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxDouble4x4Test.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 88850b2f6f612469bac83a70b67d796e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxExporterTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxExporterTest.cs new file mode 100644 index 0000000000..d56a74f40a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxExporterTest.cs @@ -0,0 +1,265 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.IO; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxExporterTest : FbxIOBaseTest + { + FbxExporter m_exporter; + + string m_testFolderPrefix = "to_delete_"; + string m_testFolder; + + private string GetRandomDirectory() + { + string randomDir = Path.Combine(Path.GetTempPath(), m_testFolderPrefix); + + string temp; + do { + // check that the directory does not already exist + temp = randomDir + Path.GetRandomFileName (); + } while(Directory.Exists (temp)); + + return temp; + } + + private string GetRandomFilename(string path, bool fbxExtension = true) + { + string temp; + do { + // check that the directory does not already exist + temp = Path.Combine (path, Path.GetRandomFileName ()); + + if(fbxExtension){ + temp = Path.ChangeExtension(temp, ".fbx"); + } + + } while(File.Exists (temp)); + + return temp; + } + + public override void Init() + { + base.Init (); + + m_exporter = FbxExporter.Create (Manager, "exporter"); + + Assert.IsNotNull (m_exporter); + + var testDirectories = Directory.GetDirectories(Path.GetTempPath(), m_testFolderPrefix + "*"); + + foreach (var directory in testDirectories) + { + Directory.Delete(directory, true); + } + + m_testFolder = GetRandomDirectory (); + Directory.CreateDirectory (m_testFolder); + } + + public override void Term() + { + try{ + m_exporter.Destroy(); + } + catch(System.ArgumentNullException){ + // already destroyed in test + } + + base.Term (); + + // delete all files that were created + Directory.Delete(m_testFolder, true); + } + + [Test] + public override void TestBasics() + { + base.TestBasics(); + + // Call each function that doesn't write a file, just to see whether it crashes. + m_exporter.Initialize("foo.fbx"); + m_exporter.SetFileExportVersion("FBX201400"); + m_exporter.GetCurrentWritableVersions(); + m_exporter.SetProgressCallback(null); + m_exporter.SetProgressCallback((float a, string b) => true); + m_exporter.SetProgressCallback(null); + + // test GetFileHeaderInfo() + TestGetter(m_exporter.GetFileHeaderInfo()); + Assert.IsNotNull (m_exporter.GetFileHeaderInfo ()); + } + + [Test] + public void TestExportEmptyFbxDocument () + { + FbxDocument emptyDoc = FbxDocument.Create (Manager, "empty"); + + string filename = GetRandomFilename (m_testFolder); + + // Initialize the exporter. + bool exportStatus = m_exporter.Initialize (filename, -1, Manager.GetIOSettings()); + + Assert.IsTrue (exportStatus); + + m_exporter.SetProgressCallback((float a, string b) => true); + + bool status = m_exporter.Export (emptyDoc); + + Assert.IsTrue (status); + Assert.IsTrue (File.Exists (filename)); + } + + + [Test] + public void TestExportNull () + { + string filename = GetRandomFilename (m_testFolder); + + // Initialize the exporter. + bool exportStatus = m_exporter.Initialize (filename, -1, Manager.GetIOSettings()); + + Assert.IsTrue (exportStatus); + + // Export a null document. This is documented to fail. + bool status = m_exporter.Export (null); + + Assert.IsFalse (status); + + // FbxSdk creates an empty file even though the export status was false + Assert.IsTrue (File.Exists (filename)); + } + + [Test] + public void TestInitializeInvalidFilenameOnly() + { + FbxDocument emptyDoc = FbxDocument.Create (Manager, "empty"); + + // Build the filename without the extension. + string filename = GetRandomFilename (m_testFolder, false); + + // Initialize the exporter. Use default file type and IO settings. + bool exportStatus = m_exporter.Initialize (filename); + + Assert.IsTrue (exportStatus); + + bool status = m_exporter.Export (emptyDoc); + + Assert.IsTrue (status); + + // FbxSdk doesn't create a file in this situation + Assert.IsFalse (File.Exists (filename)); + } + + [Test] + public void TestInitializeValidFilenameOnly() + { + FbxDocument emptyDoc = FbxDocument.Create (Manager, "empty"); + + string filename = GetRandomFilename (m_testFolder); + + // Initialize the exporter. Use default file type and IO settings. + bool exportStatus = m_exporter.Initialize (filename); + + Assert.IsTrue (exportStatus); + + bool status = m_exporter.Export (emptyDoc); + + Assert.IsTrue (status); + Assert.IsTrue (File.Exists (filename)); + } + + [Test] + public void TestInitializeFileFormatNegative() + { + FbxDocument emptyDoc = FbxDocument.Create (Manager, "empty"); + + string filename = GetRandomFilename (m_testFolder); + + // Initialize the exporter. Pass it a negative file format different than -1. + bool exportStatus = m_exporter.Initialize (filename, int.MinValue); + + Assert.IsTrue (exportStatus); + + bool status = m_exporter.Export (emptyDoc); + + Assert.IsTrue (status); + Assert.IsTrue (File.Exists (filename)); + } + + [Test] + public void TestInitializeFileFormatInvalid() + { + FbxDocument emptyDoc = FbxDocument.Create (Manager, "empty"); + + string filename = GetRandomFilename (m_testFolder); + + // Initialize the exporter. Pass it a file format that's not valid. + bool exportStatus = m_exporter.Initialize (filename, int.MaxValue); + + Assert.IsTrue (exportStatus); + + bool status = m_exporter.Export (emptyDoc); + + Assert.IsFalse (status); + Assert.IsFalse (File.Exists (filename)); + } + + [Test] + public void TestInitializeValidFileFormat() + { + FbxDocument emptyDoc = FbxDocument.Create (Manager, "empty"); + + string filename = GetRandomFilename (m_testFolder); + + // Initialize the exporter. Use a valid non-default file format. + bool exportStatus = m_exporter.Initialize (filename, 1); + + Assert.IsTrue (exportStatus); + + bool status = m_exporter.Export (emptyDoc); + + Assert.IsTrue (status); + Assert.IsTrue (File.Exists (filename)); + } + + [Test] + public void TestInitializeNullIOSettings() + { + FbxDocument emptyDoc = FbxDocument.Create (Manager, "empty"); + + string filename = GetRandomFilename (m_testFolder); + + // Initialize the exporter with explicit null IO settings (which is + // also the default). + bool exportStatus = m_exporter.Initialize (filename, -1, null); + + Assert.IsTrue (exportStatus); + + bool status = m_exporter.Export (emptyDoc); + + Assert.IsTrue (status); + Assert.IsTrue (File.Exists (filename)); + } + + [Test] + public void TestInitializeInvalidIOSettings() + { + string filename = GetRandomFilename (m_testFolder); + + // Initialize the exporter. Pass it zombie IO settings. + var ioSettings = FbxIOSettings.Create(Manager, ""); + ioSettings.Destroy(); + + Assert.That (() => { m_exporter.Initialize (filename, -1, ioSettings); }, Throws.Exception.TypeOf()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxExporterTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxExporterTest.cs.meta new file mode 100644 index 0000000000..39216931e5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxExporterTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 42d8d524727244ad0a0168127c9945c9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGeometryBaseTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGeometryBaseTest.cs new file mode 100644 index 0000000000..cb52453959 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGeometryBaseTest.cs @@ -0,0 +1,130 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxGeometryBaseTestBase : FbxLayerContainerBase where T : FbxGeometryBase + { + override public void TestBasics(T geometryBase, FbxNodeAttribute.EType typ) + { + base.TestBasics(geometryBase, typ); + + geometryBase.InitControlPoints (24); + Assert.AreEqual (geometryBase.GetControlPointsCount (), 24); + geometryBase.SetControlPointAt(new FbxVector4(1,2,3,4), 0); + Assert.AreEqual(new FbxVector4(1,2,3,4), geometryBase.GetControlPointAt(0)); + + int layerId0 = geometryBase.CreateLayer(); + int layerId1 = geometryBase.CreateLayer(); + var layer0 = geometryBase.GetLayer(layerId0); + var layer1 = geometryBase.GetLayer(layerId1); + Assert.AreNotEqual(layer0, layer1); + + // Fbx crashes setting a negative control point index, so we do some testing: + Assert.That (() => geometryBase.SetControlPointAt (new FbxVector4(), -1), Throws.Exception.TypeOf()); + + // It doesn't crash with past-the-end, it resizes; make sure we don't block that. + geometryBase.SetControlPointAt (new FbxVector4(1,2,3,4), 50); // does not throw + Assert.AreEqual (geometryBase.GetControlPointsCount (), 51); + + // Out of bounds returns FbxVector4(0,0,0). FBX code crashes with + // index < 0. Don't crash and return the documented value + Assert.That( geometryBase.GetControlPointAt(-1), Is.EqualTo(new FbxVector4(0,0,0))); + geometryBase.GetControlPointAt(geometryBase.GetControlPointsCount() + 1); + + var elementNormal = geometryBase.CreateElementNormal (); + Assert.IsInstanceOf (elementNormal); + + var elementTangent = geometryBase.CreateElementTangent (); + Assert.IsInstanceOf (elementTangent); + } + } + + internal class FbxGeometryBaseTest : FbxGeometryBaseTestBase { + [Test] + public void TestBasics() + { + base.TestBasics(CreateObject("geometry base"), FbxNodeAttribute.EType.eUnknown); + + // You can even initialize to a negative number of control points: + using (FbxGeometryBase geometryBase2 = CreateObject ("geometry base")) { + // make sure this doesn't crash + geometryBase2.InitControlPoints (-1); + } + } + } + + internal class FbxGeometryTestBase : FbxGeometryBaseTestBase where T : FbxGeometry + { + override public void TestBasics(T fbxGeometry, FbxNodeAttribute.EType typ) + { + base.TestBasics(fbxGeometry, typ); + + int origCount = fbxGeometry.GetDeformerCount (); + + // test get blendshape deformer + FbxBlendShape blendShape = FbxBlendShape.Create (Manager, "blendShape"); + int index = fbxGeometry.AddDeformer (blendShape); + Assert.GreaterOrEqual (index, 0); + origCount++; + + // TODO: (UNI-19581): If we add the blendShape after the skin, then the below + // tests fail. + Assert.AreEqual (blendShape, fbxGeometry.GetBlendShapeDeformer (index)); + Assert.AreEqual (blendShape, fbxGeometry.GetBlendShapeDeformer (index, null)); + Assert.AreEqual (blendShape, fbxGeometry.GetDeformer (index, FbxDeformer.EDeformerType.eBlendShape)); + Assert.AreEqual (1, fbxGeometry.GetDeformerCount (FbxDeformer.EDeformerType.eBlendShape)); + + // test add deformer + FbxSkin skin = FbxSkin.Create (Manager, "skin"); + int skinIndex = fbxGeometry.AddDeformer (skin); + Assert.GreaterOrEqual (skinIndex, 0); + Assert.AreEqual(skin, fbxGeometry.GetDeformer(skinIndex)); + + // test get invalid deformer index doesn't crash + fbxGeometry.GetDeformer(-1, new FbxStatus()); + fbxGeometry.GetDeformer(int.MaxValue, new FbxStatus()); + + // test get deformer null FbxStatus + fbxGeometry.GetDeformer(0, null); + + // check right index but wrong type + Assert.IsNull (fbxGeometry.GetDeformer (skinIndex, FbxDeformer.EDeformerType.eVertexCache, null)); + + Assert.AreEqual (origCount+1, fbxGeometry.GetDeformerCount ()); + + // test add null deformer + Assert.That (() => fbxGeometry.AddDeformer(null), Throws.Exception.TypeOf()); + + // test add invalid deformer + skin.Destroy(); + Assert.That (() => fbxGeometry.AddDeformer(skin), Throws.Exception.TypeOf()); + } + } + + internal class FbxGeometryTest : FbxGeometryTestBase + { + [Test] + public void TestBasics() + { + base.TestBasics(CreateObject ("geometry"), FbxNodeAttribute.EType.eUnknown); + } + } + + internal class FbxShapeTest : FbxGeometryBaseTestBase + { + [Test] + public void TestBasics() + { + base.TestBasics(CreateObject ("shape"), FbxNodeAttribute.EType.eShape); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGeometryBaseTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGeometryBaseTest.cs.meta new file mode 100644 index 0000000000..9398156d4a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGeometryBaseTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8fc1283d49ae848cabc71a1fe026162e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGlobalSettingsTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGlobalSettingsTest.cs new file mode 100644 index 0000000000..0a752ca8e1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGlobalSettingsTest.cs @@ -0,0 +1,54 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxGlobalSettingsTest : Base + { + [Test] + public void TestBasics() + { + var scene = FbxScene.Create(Manager, ""); + var settings = scene.GetGlobalSettings(); + + settings.SetAxisSystem(FbxAxisSystem.MayaYUp); + var axes = settings.GetAxisSystem(); + Assert.AreEqual(axes, FbxAxisSystem.MayaYUp); + + settings.SetSystemUnit(FbxSystemUnit.m); + var units = settings.GetSystemUnit(); + Assert.AreEqual(units, FbxSystemUnit.m); + + var settingsB = scene.GetGlobalSettings(); + Assert.AreEqual(settings, settingsB); + + var scene2 = FbxScene.Create(Manager, ""); + var settings2 = scene2.GetGlobalSettings(); + Assert.AreNotEqual(settings, settings2); + + // Cover all the equality and inequality operators + Assert.That(settings != settings2); + Assert.That(settings as FbxObject != settings2 as FbxObject); + Assert.That(settings as FbxEmitter != settings2 as FbxEmitter); + + // test SetDefaultCamera + settings.SetDefaultCamera("camera"); + Assert.AreEqual ("camera", settings.GetDefaultCamera ()); + + // test SetAmbientColor + settings.SetAmbientColor(new FbxColor(1,1,1)); + Assert.AreEqual (new FbxColor (1, 1, 1), settings.GetAmbientColor ()); + + // test SetTimeMode + settings.SetTimeMode(FbxTime.EMode.eFrames100); + Assert.That(settings.GetTimeMode(), Is.EqualTo(FbxTime.EMode.eFrames100)); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGlobalSettingsTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGlobalSettingsTest.cs.meta new file mode 100644 index 0000000000..ffd2d42b71 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxGlobalSettingsTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6fe31b7a807374e6eb66747ff9ce1c8c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOBaseTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOBaseTest.cs new file mode 100644 index 0000000000..8da571591d --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOBaseTest.cs @@ -0,0 +1,33 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + + internal class FbxIOBaseTest : Base where T: FbxIOBase + { + [Test] + public virtual void TestBasics() + { + using (var iobase = CreateObject()) { iobase.Initialize("/no/such/file.fbx"); } + using (var iobase = CreateObject()) { iobase.Initialize("/no/such/file.fbx", -1); } + using (var iobase = CreateObject()) { iobase.Initialize("/no/such/file.fbx", -1, FbxIOSettings.Create(Manager, "")); } + using (var iobase = CreateObject()) { iobase.Initialize("/no/such/file.fbx", -1, null); } + + using (var iobase = CreateObject()) { + Assert.IsFalse(iobase.GetStatus().Error()); + iobase.Initialize("/no/such/file.fbx"); + Assert.AreEqual("/no/such/file.fbx", iobase.GetFileName()); + } + } + } + + internal class FbxIOBaseTestClass : FbxIOBaseTest { } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOBaseTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOBaseTest.cs.meta new file mode 100644 index 0000000000..aae6a6c6c1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOBaseTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 63e11ca5096b147b989fea9e6f3a8f4b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOFileHeaderInfoTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOFileHeaderInfoTest.cs new file mode 100644 index 0000000000..5686240512 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOFileHeaderInfoTest.cs @@ -0,0 +1,22 @@ +using UnityEngine; +using UnityEditor; +using UnityEngine.TestTools; +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxIOFileHeaderInfoTest : TestBase + { + + [Test] + public void TestBasics () + { + var fileHeaderInfo = new FbxIOFileHeaderInfo (); + TestGetter (fileHeaderInfo.mCreator); + TestGetter (fileHeaderInfo.mFileVersion); + fileHeaderInfo.Dispose (); + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOFileHeaderInfoTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOFileHeaderInfoTest.cs.meta new file mode 100644 index 0000000000..29d7e6c003 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOFileHeaderInfoTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 113e0a5ea194248d8856fe69f8345727 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOPluginRegistryTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOPluginRegistryTest.cs new file mode 100644 index 0000000000..09eca8b672 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOPluginRegistryTest.cs @@ -0,0 +1,38 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxIOPluginRegistryTest + { + [Test] + public void TestBasics () + { + using (FbxManager manager = FbxManager.Create ()) { + int fileFormat = manager.GetIOPluginRegistry ().FindWriterIDByDescription ("FBX ascii (*.fbx)"); + Assert.GreaterOrEqual (fileFormat, 0); // just check that it is something other than -1 + + // test an invalid format + fileFormat = manager.GetIOPluginRegistry ().FindWriterIDByDescription ("invalid format"); + Assert.AreEqual (-1, fileFormat); + + // test null + Assert.That (() => { manager.GetIOPluginRegistry ().FindWriterIDByDescription (null); }, Throws.Exception.TypeOf()); + + // test dispose + // TODO: Dispose doesn't really seem useful here, should we do anything about it? + manager.GetIOPluginRegistry ().Dispose (); + fileFormat = manager.GetIOPluginRegistry ().FindWriterIDByDescription ("invalid format"); + Assert.AreEqual (-1, fileFormat); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOPluginRegistryTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOPluginRegistryTest.cs.meta new file mode 100644 index 0000000000..6e8033bdf5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOPluginRegistryTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 82ec84c71d9344d689229df9548a98b2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOSettingsTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOSettingsTest.cs new file mode 100644 index 0000000000..61cb170173 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOSettingsTest.cs @@ -0,0 +1,57 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + + internal class FbxIOSettingsTest : Base + { + [Test] + public void TestFVirtual () + { + // Test the swig -fvirtual flag works properly: we can call virtual + // functions defined on the base class without the function also + // being defined in the subclass. + + FbxManager manager = FbxManager.Create (); + FbxIOSettings ioSettings = FbxIOSettings.Create (manager, ""); + + // GetSelected is a virtual method inherited from FbxObject + Assert.IsFalse (ioSettings.GetSelected ()); + ioSettings.SetSelected (true); + Assert.IsTrue (ioSettings.GetSelected ()); + + ioSettings.Destroy (); + manager.Destroy (); + } + + [Test] + public void TestIdentity () + { + using (FbxIOSettings ioSettings1 = FbxIOSettings.Create (Manager, "")) { + Manager.SetIOSettings (ioSettings1); + + FbxIOSettings ioSettings2 = Manager.GetIOSettings (); + Assert.AreEqual (ioSettings1, ioSettings2); + } + } + + [Test] + public void TestSetBoolProp() + { + // just make sure it doesn't crash + using (FbxIOSettings ioSettings = FbxIOSettings.Create (Manager, "")) { + ioSettings.SetBoolProp (Globals.EXP_FBX_EMBEDDED, true); + ioSettings.SetBoolProp ("", true); + + Assert.That (() => { ioSettings.SetBoolProp (null, true); }, Throws.Exception.TypeOf()); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOSettingsTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOSettingsTest.cs.meta new file mode 100644 index 0000000000..a6de2a54e3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxIOSettingsTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d2dafe081846746798925a3cf9140af7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImplementationTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImplementationTest.cs new file mode 100644 index 0000000000..91b6b9a182 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImplementationTest.cs @@ -0,0 +1,36 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxImplementationTest : Base + { + [Test] + public void TestBasics() { + var impl = FbxImplementation.Create(Manager, "impl"); + + // Call the getters, make sure they get. + GetSetProperty(impl.Language, "klingon"); + GetSetProperty(impl.LanguageVersion, "0.1"); + GetSetProperty(impl.RenderAPI, "bogosity"); + GetSetProperty(impl.RenderAPIVersion, "0.1"); + GetSetProperty(impl.RootBindingName, "root"); + + impl.RootBindingName.Set("root"); + var table = impl.AddNewTable("root", "shader"); + Assert.AreEqual(table, impl.GetRootTable()); + } + + void GetSetProperty(FbxPropertyString prop, string value) { + prop.Set(value); + Assert.AreEqual(value, prop.Get()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImplementationTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImplementationTest.cs.meta new file mode 100644 index 0000000000..f32c1bb7cf --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImplementationTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a8ca48ac1b8824e2291883cf9131561c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImporterTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImporterTest.cs new file mode 100644 index 0000000000..14d8643284 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImporterTest.cs @@ -0,0 +1,82 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxImporterTest : FbxIOBaseTest + { + [Test] + public override void TestBasics () + { + base.TestBasics(); + + using (FbxImporter newImporter = CreateObject("MyImporter")) + { + // import a null document. + Assert.IsFalse (newImporter.Import (null)); + + // set a callback function + newImporter.SetProgressCallback(null); + newImporter.SetProgressCallback((float a, string b) => true); + newImporter.SetProgressCallback(null); + } + + // Export an empty scene to a temp file, then import. + var filename = GetRandomFile(); + try { + + using(var exporter = FbxExporter.Create(Manager, "exporter")) { + using (var scene = FbxScene.Create(Manager, "exported scene")) { + Assert.IsTrue(exporter.Initialize(filename)); + Assert.IsTrue(exporter.Export(scene)); + } + } + var scene_in = FbxScene.Create(Manager, "imported scene"); + using(var importer = FbxImporter.Create(Manager, "import")) { + Assert.IsTrue(importer.Initialize(filename)); + Assert.IsTrue(importer.Import(scene_in)); + Assert.IsTrue(importer.IsFBX()); + + int sdkMajor = -1, sdkMinor = -1, sdkRevision = -1; + FbxManager.GetFileFormatVersion (out sdkMajor, out sdkMinor, out sdkRevision); + int fileMajor = -1, fileMinor = -1, fileRevision = -1; + importer.GetFileVersion (out fileMajor, out fileMinor, out fileRevision); + Assert.AreNotSame(fileMajor,-1); + Assert.AreNotSame(fileMinor,-1); + Assert.AreNotSame(fileRevision,-1); + Assert.AreEqual(sdkMajor,fileMajor); + Assert.AreEqual(sdkMinor,fileMinor); + Assert.AreEqual(sdkRevision,fileRevision); + + Assert.IsEmpty(importer.GetActiveAnimStackName()); + Assert.AreEqual(importer.GetAnimStackCount(), 0); + + // test GetFileHeaderInfo() + TestGetter(importer.GetFileHeaderInfo()); + Assert.IsNotNull(importer.GetFileHeaderInfo()); + } + // we actually don't care about the scene itself! + } finally { + System.IO.File.Delete(filename); + } + } + + string GetRandomFile() + { + var tmp = System.IO.Path.GetTempPath(); + for(int i = 0; i < 20; ++i) { + var path = System.IO.Path.Combine(tmp, System.IO.Path.GetRandomFileName()) + ".fbx"; + if (!System.IO.File.Exists(path)) { + return path; + } + } + throw new System.IO.IOException("can't find an unused random temp filename"); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImporterTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImporterTest.cs.meta new file mode 100644 index 0000000000..b28b73de49 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxImporterTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 911578769ede949d3bece8b2caa78817 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerContainerTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerContainerTest.cs new file mode 100644 index 0000000000..bf8bb386e0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerContainerTest.cs @@ -0,0 +1,41 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxLayerContainerBase : FbxNodeAttributeBase where T:FbxLayerContainer + { + override public void TestBasics(T layerContainer, FbxNodeAttribute.EType typ) + { + base.TestBasics(layerContainer, typ); + + int index = layerContainer.CreateLayer (); + Assert.GreaterOrEqual (index, 0); // check an index is returned (-1 is error) + + // make sure doesn't crash and returns expected value + Assert.IsNotNull (layerContainer.GetLayer (index)); + Assert.IsNull (layerContainer.GetLayer (int.MinValue)); + Assert.IsNull (layerContainer.GetLayer (int.MaxValue)); + Assert.AreEqual (layerContainer.GetLayerCount (), 1); + Assert.AreEqual (layerContainer.GetLayerCount (FbxLayerElement.EType.eUnknown), 0); + Assert.AreEqual (layerContainer.GetLayerCount (FbxLayerElement.EType.eUnknown, true), 0); + + } + } + + internal class FbxLayerContainerTest : FbxLayerContainerBase + { + [Test] + public void TestBasics() { + base.TestBasics(CreateObject(), FbxNodeAttribute.EType.eUnknown); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerContainerTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerContainerTest.cs.meta new file mode 100644 index 0000000000..70d4802d4f --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerContainerTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b5ad5d565d1594dba99a34afc16ce174 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementArrayTestBase.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementArrayTestBase.cs new file mode 100644 index 0000000000..85f4366ad7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementArrayTestBase.cs @@ -0,0 +1,153 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal abstract class FbxLayerElementArrayTestBase : TestBase where T : Autodesk.Fbx.FbxLayerElementArray + { + public void TestBasics(T layerElementArray) + { + // Test SetCount() + layerElementArray.SetCount (1); + Assert.AreEqual (layerElementArray.GetCount (), 1); + + // test invalid + layerElementArray.SetCount (-1); + + // Test AddInt() + layerElementArray.Add (0); + layerElementArray.Add (-1); + + // Test AddFbxColor() + layerElementArray.Add (new FbxColor ()); + layerElementArray.Add (new FbxColor (1, 0, 0)); + + // Test AddFbxVector2() + layerElementArray.Add (new FbxVector2 ()); + layerElementArray.Add (new FbxVector2 (1, 0)); + + // Test AddFbxVector4() + layerElementArray.Add (new FbxVector4 ()); + layerElementArray.Add (new FbxVector4 (1, 0, 0)); + + // Test SetAtInt() + layerElementArray.SetAt (0, 1); + + // test invalid index + layerElementArray.SetAt (-1, 1); + + // test negative int + layerElementArray.SetAt (1, -1); + + // Test SetAtFbxColor() + layerElementArray.SetAt (0, new FbxColor ()); + + // test invalid index + layerElementArray.SetAt (-1, new FbxColor ()); + + // Test SetFbxVector2() + layerElementArray.SetAt (0, new FbxVector2 ()); + + // test invalid index + layerElementArray.SetAt (-1, new FbxVector2 ()); + + // Test SetAtFbxVector4() + layerElementArray.SetAt (0, new FbxVector4 ()); + + // test invalid index + layerElementArray.SetAt (-1, new FbxVector4 ()); + + // test dispose + layerElementArray.Dispose (); + Assert.That (() => { + layerElementArray.SetCount (1); + }, Throws.Exception.TypeOf ()); + } + + [Test] + public abstract void TestBasics(); + } + + internal abstract class FbxLayerElementArrayTemplateTestBase : FbxLayerElementArrayTestBase where T : Autodesk.Fbx.FbxLayerElementArray { + + static System.Reflection.MethodInfo s_getAt; + static System.Reflection.ConstructorInfo s_constructor; + + static FbxLayerElementArrayTemplateTestBase() { + s_getAt = typeof(T).GetMethod("GetAt", new System.Type[] { typeof(int) }); + s_constructor = typeof(T).GetConstructor (System.Type.EmptyTypes); + } + + public T CreateObject() + { + return Invoker.InvokeConstructor (s_constructor); + } + + public U GetAt(T layerElementArray, int index){ + return Invoker.Invoke (s_getAt, layerElementArray, index); + } + + [Test] + public override void TestBasics () + { + base.TestBasics (CreateObject()); + } + + [Test] + public void TestGetAt () + { + T layerElementArrayTemplate = CreateObject(); + + Assert.IsNotNull (layerElementArrayTemplate); + + layerElementArrayTemplate.SetCount (1); + + // make sure doesn't crash + GetAt (layerElementArrayTemplate, 0); + + Assert.That (() => { + GetAt (layerElementArrayTemplate, int.MinValue); + }, Throws.Exception.TypeOf ()); + + Assert.That (() => { + GetAt (layerElementArrayTemplate, int.MaxValue); + }, Throws.Exception.TypeOf ()); + } + } + + internal class FbxLayerElementArrayTest : FbxLayerElementArrayTestBase { + [Test] + public override void TestBasics() + { + TestBasics(new FbxLayerElementArray (EFbxType.eFbxBlob)); + } + } + + internal class FbxLayerElementArrayTemplateFbxColorTest : + FbxLayerElementArrayTemplateTestBase { + } + + internal class FbxLayerElementArrayTemplateFbxSurfaceMaterialTest : + FbxLayerElementArrayTemplateTestBase { + } + + internal class FbxLayerElementArrayTemplateFbxVector2Test : + FbxLayerElementArrayTemplateTestBase { + } + + internal class FbxLayerElementArrayTemplateFbxVector4Test : + FbxLayerElementArrayTemplateTestBase { + } + + internal class FbxLayerElementArrayTemplateIntTest : + FbxLayerElementArrayTemplateTestBase { + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementArrayTestBase.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementArrayTestBase.cs.meta new file mode 100644 index 0000000000..771f12f84b --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementArrayTestBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 70883ed5800994bb9bbc6b726b8e9fd4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementTestBase.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementTestBase.cs new file mode 100644 index 0000000000..8e4d4a4529 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementTestBase.cs @@ -0,0 +1,177 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +// This file contains Tests for FbxLayerElement and all its derived classes. + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +/* + * Convenience class for testing all derived classes of FbxLayerElement. + * + * FbxLayerElement itself has no public constructor or Create function, so we can + * only test its functions from its derived classes (which do have Create functions). + */ +namespace Autodesk.Fbx.UnitTests +{ + internal abstract class FbxLayerElementTestBase where T: Autodesk.Fbx.FbxLayerElement + { + // Note: Create function is only present in derived classes (those which are actually used). + // Included it here so that we can test FbxLayerElement functions, and because they + // are all of the same format (avoid copy pasting into each derived class test class). + // T.Create(FbxLayerContainer, string) + static System.Reflection.MethodInfo s_createFromLayerContainerAndName; + + static System.Reflection.MethodInfo s_getDirectArray; + static System.Reflection.MethodInfo s_getIndexArray; + + static FbxLayerElementTestBase() { + s_createFromLayerContainerAndName = typeof(T).GetMethod("Create", new System.Type[] {typeof(FbxLayerContainer), typeof(string)}); + + s_getDirectArray = typeof(T).GetMethod ("GetDirectArray"); + s_getIndexArray = typeof(T).GetMethod ("GetIndexArray"); + } + + protected FbxManager m_fbxManager; + + protected FbxLayerContainer LayerContainer { + get; + private set; + } + + /* Create an object with the default manager. */ + public T CreateObject (string name = "") { + return CreateObject(LayerContainer, name); + } + + /* Test all the equality functions we can find. */ + [Test] + public virtual void TestEquality() { + var a = CreateObject("a"); + var b = CreateObject("b"); + var acopy = a; // TODO: copy the proxy + EqualityTester.TestEquality(a, b, acopy); + } + + /* Create an object with another layer container. Default implementation uses + * reflection to call T.Create(...); override if reflection is wrong. */ + public virtual T CreateObject (FbxLayerContainer layerContainer, string name = "") { + return Invoker.InvokeStatic(s_createFromLayerContainerAndName, layerContainer, name); + } + + public virtual FbxLayerElementArray GetDirectArray(T layerElement) + { + return Invoker.Invoke (s_getDirectArray, layerElement); + } + + public virtual FbxLayerElementArrayTemplateInt GetIndexArray(T layerElement) + { + return Invoker.Invoke (s_getIndexArray, layerElement); + } + + [SetUp] + public virtual void Init () + { + m_fbxManager = FbxManager.Create (); + LayerContainer = FbxLayerContainer.Create (m_fbxManager, "layer container"); + } + + [TearDown] + public virtual void Term () + { + try { + m_fbxManager.Destroy (); + } + catch (System.ArgumentNullException) { + } + } + + [Test] + public void TestCreate() + { + var obj = CreateObject("MyObject"); + Assert.IsInstanceOf (obj); + + // test null container + Assert.That (() => { CreateObject((FbxLayerContainer)null, "MyObject"); }, Throws.Exception.TypeOf()); + + // test null name + CreateObject((string)null); + + // test zombie + var layerContainer = FbxLayerContainer.Create(m_fbxManager, ""); + layerContainer.Destroy(); + Assert.That (() => { CreateObject(layerContainer, "MyObject"); }, Throws.Exception.TypeOf()); + } + + [Test] + public void TestDispose () + { + var layerElement = CreateObject ("element"); + layerElement.Dispose (); + Assert.That (() => { layerElement.SetMappingMode (FbxLayerElement.EMappingMode.eAllSame); }, Throws.Exception.TypeOf()); + + T element; + using (element = CreateObject ("element2")) { + element.SetMappingMode (FbxLayerElement.EMappingMode.eAllSame); // should be fine + } + Assert.That (() => { element.SetMappingMode (FbxLayerElement.EMappingMode.eAllSame); }, Throws.Exception.TypeOf()); + } + + [Test] + public void TestSetMappingMode () + { + var layerElement = CreateObject ("element"); + layerElement.SetMappingMode (FbxLayerElement.EMappingMode.eByControlPoint); + Assert.AreEqual (layerElement.GetMappingMode (), FbxLayerElement.EMappingMode.eByControlPoint); + } + + [Test] + public void TestSetReferenceMode () + { + var layerElement = CreateObject ("element"); + layerElement.SetReferenceMode (FbxLayerElement.EReferenceMode.eDirect); + Assert.AreEqual (layerElement.GetReferenceMode (), FbxLayerElement.EReferenceMode.eDirect); + } + + [Test] + public void TestGetDirectArray() { + var layerElement = CreateObject ("element"); + // make sure this doesn't crash + GetDirectArray (layerElement); + } + + [Test] + public void TestGetIndexArray() { + var layerElement = CreateObject ("element"); + // make sure this doesn't crash + GetIndexArray (layerElement); + } + } + + /* + * Tests for the classes derived from the FbxLayerElementTemplate classes. + */ + internal class FbxLayerElementUVTest : FbxLayerElementTestBase + {} + + internal class FbxLayerElementVertexColorTest : FbxLayerElementTestBase + {} + + internal class FbxLayerElementNormalTest : FbxLayerElementTestBase + {} + + internal class FbxLayerElementBinormalTest : FbxLayerElementTestBase + {} + + internal class FbxLayerElementTangentTest : FbxLayerElementTestBase + {} + + internal class FbxLayerElementMaterialTest : FbxLayerElementTestBase + {} +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementTestBase.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementTestBase.cs.meta new file mode 100644 index 0000000000..1c67b1e45e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerElementTestBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f6544d125ee52486e83120a7bcc0b67a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerTest.cs new file mode 100644 index 0000000000..fe1b40f0e2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerTest.cs @@ -0,0 +1,172 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxLayerTest : TestBase + { + + private FbxMesh m_fbxMesh; + private FbxManager m_fbxManager; + private FbxLayer m_fbxLayer; + + [SetUp] + public void Init () + { + m_fbxManager = FbxManager.Create (); + m_fbxMesh = FbxMesh.Create (m_fbxManager, ""); + m_fbxLayer = m_fbxMesh.GetLayer (0); + if (m_fbxLayer == null) + { + m_fbxMesh.CreateLayer (); + m_fbxLayer = m_fbxMesh.GetLayer (0 /* default layer */); + } + } + + [TearDown] + public void Term () + { + m_fbxManager.Destroy (); + } + + [Test] + public void TestSetNormals () + { + // make sure nothing crashes + + m_fbxLayer.SetNormals (FbxLayerElementNormal.Create (m_fbxMesh, "")); + Assert.IsNotNull (m_fbxLayer.GetNormals ()); + + // test null + m_fbxLayer.SetNormals(null); + Assert.IsNull (m_fbxLayer.GetNormals ()); + + // test destroyed + FbxLayerElementNormal normals = FbxLayerElementNormal.Create (m_fbxMesh, ""); + normals.Dispose (); + m_fbxLayer.SetNormals (normals); + } + + [Test] + public void TestSetBinormals () + { + // make sure nothing crashes + + m_fbxLayer.SetBinormals (FbxLayerElementBinormal.Create (m_fbxMesh, "")); + Assert.IsNotNull (m_fbxLayer.GetBinormals ()); + + // test null + m_fbxLayer.SetBinormals(null); + Assert.IsNull (m_fbxLayer.GetBinormals ()); + + // test destroyed + FbxLayerElementBinormal binormals = FbxLayerElementBinormal.Create (m_fbxMesh, ""); + binormals.Dispose (); + m_fbxLayer.SetBinormals (binormals); + } + + [Test] + public void TestSetTangents () + { + // make sure nothing crashes + + m_fbxLayer.SetTangents (FbxLayerElementTangent.Create (m_fbxMesh, "")); + Assert.IsNotNull (m_fbxLayer.GetTangents ()); + + // test null + m_fbxLayer.SetTangents(null); + Assert.IsNull (m_fbxLayer.GetTangents ()); + + // test destroyed + FbxLayerElementTangent tangents = FbxLayerElementTangent.Create (m_fbxMesh, ""); + tangents.Dispose (); + m_fbxLayer.SetTangents (tangents); + } + + [Test] + public void TestSetVertexColors () + { + // make sure nothing crashes + + m_fbxLayer.SetVertexColors (FbxLayerElementVertexColor.Create (m_fbxMesh, "")); + Assert.IsNotNull (m_fbxLayer.GetVertexColors ()); + + // test null + m_fbxLayer.SetVertexColors(null); + Assert.IsNull (m_fbxLayer.GetVertexColors ()); + + // test destroyed + FbxLayerElementVertexColor vertexColor = FbxLayerElementVertexColor.Create (m_fbxMesh, ""); + vertexColor.Dispose (); + m_fbxLayer.SetVertexColors(vertexColor); + } + + [Test] + public void TestSetMaterials() + { + // make sure nothing crashes + + m_fbxLayer.SetMaterials(FbxLayerElementMaterial.Create (m_fbxMesh, "")); + Assert.IsNotNull (m_fbxLayer.GetMaterials ()); + + // test null + m_fbxLayer.SetMaterials(null); + Assert.IsNull (m_fbxLayer.GetMaterials ()); + + // test destroyed + FbxLayerElementMaterial material = FbxLayerElementMaterial.Create (m_fbxMesh, ""); + material.Dispose (); + m_fbxLayer.SetMaterials(material); + } + + [Test] + public void TestSetUVs () + { + // make sure nothing crashes + + m_fbxLayer.SetUVs (FbxLayerElementUV.Create (m_fbxMesh, "")); + + // test with type identifier + m_fbxLayer.SetUVs(FbxLayerElementUV.Create (m_fbxMesh, ""), FbxLayerElement.EType.eEdgeCrease); + // TODO: why does this return null? + Assert.IsNull(m_fbxLayer.GetUVs(FbxLayerElement.EType.eEdgeCrease)); + + // test null + m_fbxLayer.SetUVs(null); + Assert.IsNull (m_fbxLayer.GetUVs ()); + + // test destroyed + FbxLayerElementUV uvs = FbxLayerElementUV.Create (m_fbxMesh, ""); + uvs.Dispose (); + m_fbxLayer.SetUVs (uvs); + } + + [Test] + public void TestDispose() + { + // make sure that calling SetNormals on a disposed layer throws + m_fbxLayer.Dispose (); + Assert.That(() => m_fbxLayer.SetNormals (FbxLayerElementNormal.Create(m_fbxMesh, "")), + Throws.Exception.TypeOf()); + } + + /* Test all the equality functions we can find. */ + [Test] + public void TestEquality() { + var aIndex = m_fbxMesh.CreateLayer(); + var bIndex = m_fbxMesh.CreateLayer(); + var a = m_fbxMesh.GetLayer(aIndex); + var b = m_fbxMesh.GetLayer(bIndex); + var acopy = m_fbxMesh.GetLayer(aIndex); + EqualityTester.TestEquality(a, b, acopy); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerTest.cs.meta new file mode 100644 index 0000000000..fa81d220e6 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLayerTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b0b4a2c3e4107420a90f81eb28998ffa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLightTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLightTest.cs new file mode 100644 index 0000000000..d58bae273c --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLightTest.cs @@ -0,0 +1,78 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxLightTest : FbxNodeAttributeBase + { + [Test] + public void TestBasics() + { + using (var fbxLight = CreateObject ("light")) { + base.TestBasics(fbxLight, FbxNodeAttribute.EType.eLight); + + var shadowTexture = FbxTexture.Create (Manager, "tex"); + fbxLight.SetShadowTexture (shadowTexture); + Assert.AreEqual (shadowTexture, fbxLight.GetShadowTexture ()); + + // test setting null shadow texture + Assert.That (() => { fbxLight.SetShadowTexture(null); }, Throws.Exception.TypeOf()); + + // test setting invalid texture + shadowTexture.Destroy(); + Assert.That (() => { fbxLight.SetShadowTexture(shadowTexture); }, Throws.Exception.TypeOf()); + } + } + + [Test] + public void TestProperties () + { + using (var fbxLight = CreateObject ("light")) { + // Get the color. Both the one defined in FbxLight, and the one + // defined in its base class -- they're different functions! + TestGetter (fbxLight.Color); + TestGetter (((FbxNodeAttribute)fbxLight).Color); + + // Make sure they return the same property handle under the hood. + // If in a future version that changes, we should rename both + // of the properties to avoid bug reports. + Assert.AreEqual(fbxLight.Color, ((FbxNodeAttribute)fbxLight).Color); + + // Get everything else, which behaves normally. + TestGetter (fbxLight.DrawFrontFacingVolumetricLight); + TestGetter (fbxLight.DrawGroundProjection); + TestGetter (fbxLight.DrawVolumetricLight); + TestGetter (fbxLight.FileName); + TestGetter (fbxLight.InnerAngle); + TestGetter (fbxLight.Intensity); + TestGetter (fbxLight.LightType); + TestGetter (fbxLight.OuterAngle); + TestGetter (fbxLight.AreaLightShape); + TestGetter (fbxLight.BottomBarnDoor); + TestGetter (fbxLight.CastLight); + TestGetter (fbxLight.CastShadows); + TestGetter (fbxLight.DecayStart); + TestGetter (fbxLight.DecayType); + TestGetter (fbxLight.EnableBarnDoor); + TestGetter (fbxLight.EnableFarAttenuation); + TestGetter (fbxLight.EnableNearAttenuation); + TestGetter (fbxLight.FarAttenuationEnd); + TestGetter (fbxLight.FarAttenuationStart); + TestGetter (fbxLight.Fog); + TestGetter (fbxLight.LeftBarnDoor); + TestGetter (fbxLight.NearAttenuationEnd); + TestGetter (fbxLight.NearAttenuationStart); + TestGetter (fbxLight.RightBarnDoor); + TestGetter (fbxLight.ShadowColor); + TestGetter (fbxLight.TopBarnDoor); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLightTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLightTest.cs.meta new file mode 100644 index 0000000000..ecd0492b93 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLightTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4493acca6553e47c98a195477b8464a4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLimitsTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLimitsTest.cs new file mode 100644 index 0000000000..9288c4eab0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLimitsTest.cs @@ -0,0 +1,57 @@ +// *********************************************************************** +// Copyright (c) 2018 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxLimitsTest : TestBase + { + // There's lots of flags with get/set to test. Do it with lambdas. + delegate bool GetActive(); + delegate void SetActive(bool active); + void AssertActiveFlag(GetActive getActive, SetActive setActive) + { + Assert.IsFalse(getActive()); + setActive(true); + Assert.IsTrue(getActive()); + } + + [Test] + public void TestBasics () + { + var limits = new FbxLimits(); + + AssertActiveFlag(limits.GetActive, limits.SetActive); + + AssertActiveFlag(limits.GetMinXActive, limits.SetMinXActive); + AssertActiveFlag(limits.GetMinYActive, limits.SetMinYActive); + AssertActiveFlag(limits.GetMinZActive, limits.SetMinZActive); + limits.SetMin(new FbxDouble3(1, 2, 3)); + Assert.That(limits.GetMin(), Is.EqualTo(new FbxDouble3(1, 2, 3))); + + AssertActiveFlag(limits.GetMaxXActive, limits.SetMaxXActive); + AssertActiveFlag(limits.GetMaxYActive, limits.SetMaxYActive); + AssertActiveFlag(limits.GetMaxZActive, limits.SetMaxZActive); + limits.SetMax(new FbxDouble3(4, 5, 6)); + Assert.That(limits.GetMax(), Is.EqualTo(new FbxDouble3(4, 5, 6))); + + Assert.That(limits.Apply(new FbxDouble3(7, 8, 9)), Is.EqualTo(new FbxDouble3(4, 5, 6))); + + limits.SetMinActive(false, true, false); + Assert.IsFalse(limits.GetMinXActive()); + Assert.IsTrue(limits.GetMinYActive()); + limits.SetMaxActive(false, false, false); + Assert.IsFalse(limits.GetMaxXActive()); + Assert.IsTrue(limits.GetAnyMinMaxActive()); + + limits.Dispose(); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLimitsTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLimitsTest.cs.meta new file mode 100644 index 0000000000..c4fde8aa91 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxLimitsTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d8ecadb3c4ad347be97985b7640beb08 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxManagerTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxManagerTest.cs new file mode 100644 index 0000000000..a1c84ee51c --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxManagerTest.cs @@ -0,0 +1,105 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + + internal class FbxManagerTest + { + + FbxManager m_fbxManager; + + [SetUp] + public void Init () + { + m_fbxManager = FbxManager.Create (); + } + + [TearDown] + public void End () + { + m_fbxManager.Destroy (); + } + + [Test] + public void TestVersion () + { + string version = FbxManager.GetVersion (); + Assert.IsNotEmpty (version); + + string versionLong = FbxManager.GetVersion (true); + Assert.IsNotEmpty (versionLong); + + string versionShort = FbxManager.GetVersion (false); + Assert.IsNotEmpty (versionShort); + } + + [Test] + public void TestGetFileFormatVersion () + { + int major = -1, minor = -1, revision = -1; + + FbxManager.GetFileFormatVersion (out major, out minor, out revision); + + Assert.GreaterOrEqual (major, 0); + Assert.GreaterOrEqual (minor, 0); + Assert.GreaterOrEqual (revision, 0); + + } + + [Test] + public void TestIOSettings () + { + FbxIOSettings ioSettings = m_fbxManager.GetIOSettings (); + Assert.IsNull(ioSettings); + + using (FbxIOSettings ioSettings1 = FbxIOSettings.Create (m_fbxManager, "")) { + m_fbxManager.SetIOSettings (ioSettings1); + + FbxIOSettings ioSettings2 = m_fbxManager.GetIOSettings (); + Assert.IsNotNull (ioSettings2); + } + } + + [Test] + public void TestIdentity () + { + using (FbxObject obj = FbxObject.Create (m_fbxManager, "")) { + FbxManager fbxManager2 = obj.GetFbxManager(); + + Assert.AreEqual (m_fbxManager, fbxManager2); + } + } + + [Test] + public void TestUsing () + { + // Test that the using statement works, and destroys the manager. + FbxObject obj; + using (var mgr = FbxManager.Create ()) { + obj = FbxObject.Create(mgr, "asdf"); + } + Assert.That(() => { obj.GetName (); }, Throws.Exception.TypeOf()); + + // Also test explicit dispose. + var mgr2 = FbxManager.Create(); + obj = FbxObject.Create(mgr2, "hjkl"); + mgr2.Dispose(); + Assert.That(() => { obj.GetName (); }, Throws.Exception.TypeOf()); + } + + [Test] + public void TestGetIOPluginRegistry() + { + // pretty much just want to check that it doesn't crash + var ioPluginRegistry = m_fbxManager.GetIOPluginRegistry(); + Assert.IsInstanceOf (ioPluginRegistry); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxManagerTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxManagerTest.cs.meta new file mode 100644 index 0000000000..8b9cf47096 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxManagerTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb0304045821f433e8c52c29acf48da0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMarkerTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMarkerTest.cs new file mode 100644 index 0000000000..dd768471c2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMarkerTest.cs @@ -0,0 +1,64 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxMarkerTest : FbxNodeAttributeBase + { + [Test] + public void TestBasics () + { + var marker = CreateObject ("marker"); + base.TestBasics(marker, FbxNodeAttribute.EType.eMarker); + + /* Note: the type is undefined until you set it! */ + + marker.SetMarkerType(FbxMarker.EType.eStandard); + Assert.AreEqual (FbxMarker.EType.eStandard, marker.GetMarkerType ()); + + TestGetter (marker.Size); + TestGetter (marker.ShowLabel); + TestGetter (marker.Look); + TestGetter (marker.DrawLink); + + marker.SetMarkerType(FbxMarker.EType.eOptical); + { + marker.SetDefaultOcclusion(0.5); + Assert.AreEqual(0.5, marker.GetDefaultOcclusion()); + TestGetter (marker.GetOcclusion()); + } + + marker.SetMarkerType(FbxMarker.EType.eEffectorIK); + { + marker.SetDefaultIKReachTranslation(0.5); + Assert.AreEqual(0.5, marker.GetDefaultIKReachTranslation()); + + marker.SetDefaultIKReachRotation(0.5); + Assert.AreEqual(0.5, marker.GetDefaultIKReachRotation()); + + marker.SetDefaultIKPull(0.5); + Assert.AreEqual(0.5, marker.GetDefaultIKPull()); + + marker.SetDefaultIKPullHips(0.5); + Assert.AreEqual(0.5, marker.GetDefaultIKPullHips()); + + TestGetter (marker.IKPivot); + TestGetter (marker.GetIKPull()); + TestGetter (marker.GetIKPullHips()); + TestGetter (marker.GetIKReachRotation()); + TestGetter (marker.GetIKReachTranslation()); + } + + marker.Reset(); + Assert.AreEqual (FbxMarker.EType.eStandard, marker.GetMarkerType ()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMarkerTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMarkerTest.cs.meta new file mode 100644 index 0000000000..ba24eeb9b4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMarkerTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b4c216d0a0f6d465d8b2cd183627034e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMatrixTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMatrixTest.cs new file mode 100644 index 0000000000..7681973121 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMatrixTest.cs @@ -0,0 +1,250 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxMatrixTest : FbxDouble4x4TestBase + { + + public static bool AssertIsIdentity(FbxMatrix mx, + double tolerance = 1e-10, bool nothrow = false) + { + using (var id = new FbxMatrix()) { + return AssertSimilar(id, mx, tolerance, nothrow); + } + } + + public static bool AssertSimilar(FbxMatrix expected, FbxMatrix actual, + double tolerance = 1e-10, bool nothrow = false) + { + for(int y = 0; y < 4; ++y) { + for(int x = 0; x < 4; ++x) { + if (System.Math.Abs(expected.Get(x, y) - actual.Get(x, y)) >= tolerance) { + if (!nothrow) { + Assert.AreEqual(expected, actual, string.Format("Index {0} {1}", x, y)); + } + return false; + } + } + } + return true; + } + + [Test] + public void TestEquality() + { + var zero = new FbxVector4(); + var one = new FbxVector4(1,1,1); + var mx1 = new FbxMatrix(zero, zero, one); + var mx2 = new FbxMatrix(one, zero, one); + // Check that equality is value equality, not reference equality. + var mx1copy = new FbxMatrix(zero, zero, one); + EqualityTester.TestEquality(mx1, mx2, mx1copy); + + // Check that we can compare with an affine matrix. + mx1 = new FbxMatrix(new FbxVector4(1, 2, 3), new FbxVector4(0, -90, 0), one); + var affine = new FbxAMatrix(new FbxVector4(1, 2, 3), new FbxVector4(0, -90, 0), one); + Assert.IsTrue(mx1 == affine); + } + + [Test] + public void BasicTests () + { + base.TestElementAccessAndDispose(new FbxMatrix()); + + FbxMatrix mx; + + // make sure the constructors compile and don't crash + mx = new FbxMatrix(); + mx = new FbxMatrix(new FbxMatrix()); + mx = new FbxMatrix(new FbxAMatrix()); + mx = new FbxMatrix(new FbxVector4(), new FbxVector4(), new FbxVector4(1,1,1)); + mx = new FbxMatrix(new FbxVector4(), new FbxQuaternion(), new FbxVector4(1,1,1)); + mx = new FbxMatrix(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); + + /* Check the values we typed in match up. */ + for(int y = 0; y < 4; ++y) { + for(int x = 0; x < 4; ++x) { + Assert.AreEqual(x + 4 * y, mx.Get(y, x)); + } + } + Assert.AreEqual(new FbxVector4(4, 5, 6, 7), mx.GetRow(1)); + Assert.AreEqual(new FbxVector4(1, 5, 9, 13), mx.GetColumn(1)); + + /* Check that set and get work (silly transpose operation). */ + FbxMatrix mx2 = new FbxMatrix(); + for(int y = 0; y < 4; ++y) { + for(int x = 0; x < 4; ++x) { + mx2.Set(y, x, y + 4 * x); + Assert.AreEqual(mx.Get(x, y), mx2.Get(y, x)); + } + } + + /* normal transpose operation */ + Assert.AreEqual(mx, mx2.Transpose()); + + // Test SetIdentity + Assert.IsFalse(AssertIsIdentity(mx, nothrow: true)); + AssertIsIdentity(mx, 15); // squint very, very, very hard + mx.SetIdentity(); + AssertIsIdentity(mx); + + // Test getting the elements from a matrix built by TRS + var translate = new FbxVector4(1, 2, 3); + var rotate = new FbxVector4(0, 90, 0); + var scale = new FbxVector4(1, 2, .5); + mx = new FbxMatrix(translate, rotate, scale); + FbxVector4 t,r,s, shear; + double sign; + mx.GetElements(out t, out r, out shear, out s, out sign); + Assert.AreEqual(1, sign); + FbxVector4Test.AssertSimilarXYZ(translate, t); + FbxVector4Test.AssertSimilarEuler(rotate, r); + FbxVector4Test.AssertSimilarXYZ(new FbxVector4(), shear); + FbxVector4Test.AssertSimilarXYZ(scale, s); + + FbxQuaternion q = new FbxQuaternion(); + mx.GetElements(out r, q, out shear, out s, out sign); + Assert.AreEqual(1, sign); + FbxVector4Test.AssertSimilarXYZ(translate, t); + FbxQuaternionTest.AssertSimilar(rotate, q); + FbxVector4Test.AssertSimilarXYZ(new FbxVector4(), shear); + FbxVector4Test.AssertSimilarXYZ(scale, s); + + // Try SetTRS and SetTQS with the same arguments. + using (var X = new FbxMatrix()) { + X.SetTRS(translate, rotate, scale); + X.GetElements(out r, q, out shear, out s, out sign); + Assert.AreEqual(1, sign); + FbxVector4Test.AssertSimilarXYZ(translate, t); + FbxQuaternionTest.AssertSimilar(rotate, q); + FbxVector4Test.AssertSimilarXYZ(new FbxVector4(), shear); + FbxVector4Test.AssertSimilarXYZ(scale, s); + } + + using (var X = new FbxMatrix()) { + FbxQuaternion qRotate = new FbxQuaternion(); + qRotate.ComposeSphericalXYZ(rotate); + X.SetTQS(translate, q, scale); + X.GetElements(out r, q, out shear, out s, out sign); + Assert.AreEqual(1, sign); + FbxVector4Test.AssertSimilarXYZ(translate, t); + FbxQuaternionTest.AssertSimilar(rotate, q); + FbxVector4Test.AssertSimilarXYZ(new FbxVector4(), shear); + FbxVector4Test.AssertSimilarXYZ(scale, s); + + // While we're at it, transform a vertex. + // Verify also that w turns out normalized. + var v = new FbxVector4(1, 2, 3, 4); + var v2 = X.MultNormalize(v); + FbxVector4Test.AssertSimilarXYZW(new FbxVector4(2.5,6,2,1), v2); + + // While we're at it, test that we can invert the matrix. + // This matrix is invertible (since it's an affine transformation), + // and the inversion turns out to be exact. + AssertIsIdentity(X.Inverse() * X); + using (var inv = new FbxMatrix( + 0, 0, 2, 0, + 0, 0.5, 0, 0, + -1, 0, 0, 0, + 3, -1, -2, 1)) { + Assert.AreEqual(inv, X.Inverse()); + } + } + + // Test set column + set row + mx = new FbxMatrix(); + mx.SetColumn (1, new FbxVector4 (1, 2, 3, 4)); + mx.SetRow (2, new FbxVector4 (5, 6, 7, 8)); + //check that the column is what we expect + Assert.AreEqual (1, mx.Get (0, 1)); + Assert.AreEqual (2, mx.Get (1, 1)); + Assert.AreEqual (6, mx.Get (2, 1)); // this value got changed by SetRow + Assert.AreEqual (4, mx.Get (3, 1)); + // check that the row is what we expect + Assert.AreEqual (new FbxDouble4 (5, 6, 7, 8), mx [2]); + + // Test operators on two matrices. + using (var a = new FbxMatrix( + 0,1,2,3, + 4,5,6,7, + 8,9,10,11, + 12,13,14,15)) { + using (var b = new FbxMatrix( + 15,14,13,12, + 11,10,9,8, + 7,6,5,4, + 3,2,1,0)) { + using (var sum = new FbxMatrix( + 15,15,15,15, + 15,15,15,15, + 15,15,15,15, + 15,15,15,15)) { + Assert.AreEqual(sum, a + b); + } + using (var diff = new FbxMatrix( + -15,-13,-11,-9, + -7,-5,-3,-1, + 1,3,5,7, + 9,11,13,15)) { + Assert.AreEqual(diff, a - b); + } + using (var prod = new FbxMatrix( + 304,358,412,466, + 208,246,284,322, + 112,134,156,178, + 16,22,28,34)) { + Assert.AreEqual(prod, a * b); + } + using (var neg = new FbxMatrix( + 0,-1,-2,-3, + -4,-5,-6,-7, + -8,-9,-10,-11, + -12,-13,-14,-15)) { + Assert.AreEqual(neg, -a); + } + } + } + + var eyePosition = new FbxVector4(1, 2, 3); + var eyeDirection = new FbxVector4(-1, -1, -1); + var eyeUp = new FbxVector4(0, 1, 0); + + using (mx = new FbxMatrix()) { + mx.SetLookToRH(eyePosition, eyeDirection, eyeUp); + AssertSimilar(new FbxMatrix( + 0.707 , -0.408, 0.577, 0, + 0 , 0.816, 0.577, 0, + -0.707, -0.408, 0.577, 0, + 1.414 , 0 ,-3.464, 1), mx, 1e-2); + + mx.SetLookToLH(eyePosition, eyeDirection, eyeUp); + AssertSimilar(new FbxMatrix( + -0.707, -0.408,-0.577, 0, + 0 , 0.816,-0.577, 0, + 0.707 , -0.408,-0.577, 0, + -1.414, 0 , 3.464, 1), mx, 1e-2); + + mx.SetLookAtRH(eyePosition, eyeDirection, eyeUp); + AssertSimilar(new FbxMatrix( + 0.894 , -0.249, 0.371, 0, + 0 , 0.834, 0.557, 0, + -0.447, -0.498, 0.742, 0, + 0.447 , 0.083,-3.713, 1), mx, 1e-2); + + mx.SetLookAtLH(eyePosition, eyeDirection, eyeUp); + AssertSimilar(new FbxMatrix( + -0.894, -0.249,-0.371, 0, + 0 , 0.834,-0.557, 0, + 0.447 , -0.498,-0.742, 0, + -0.447, 0.083, 3.713, 1), mx, 1e-2); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMatrixTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMatrixTest.cs.meta new file mode 100644 index 0000000000..5e3b86775c --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMatrixTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8fb1ffd05e4ea4fd3b719dff1bd99015 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMeshTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMeshTest.cs new file mode 100644 index 0000000000..5f8b4618c8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMeshTest.cs @@ -0,0 +1,247 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; +using UnityEngine.TestTools.Utils; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxMeshTest : FbxGeometryTestBase + { + [Test] + public void TestBasics() + { + base.TestBasics(CreateObject("mesh"), FbxNodeAttribute.EType.eMesh); + + using (FbxMesh mesh = CreateObject ("mesh")) { + int polyCount = 0; + int polyVertexCount = 0; + + mesh.InitControlPoints(4); + mesh.SetControlPointAt(new FbxVector4(0,0,0), 0); + mesh.SetControlPointAt(new FbxVector4(1,0,0), 1); + mesh.SetControlPointAt(new FbxVector4(1,0,1), 2); + mesh.SetControlPointAt(new FbxVector4(0,0,1), 3); + mesh.BeginPolygon(); + mesh.AddPolygon(0); polyVertexCount++; + mesh.AddPolygon(1); polyVertexCount++; + mesh.AddPolygon(2); polyVertexCount++; + mesh.AddPolygon(3); polyVertexCount++; + mesh.EndPolygon(); + polyCount++; + + // Link a poly to a material (even though we don't have any). + mesh.BeginPolygon(0); + mesh.AddPolygon(0); polyVertexCount++; + mesh.AddPolygon(1); polyVertexCount++; + mesh.AddPolygon(2); polyVertexCount++; + mesh.AddPolygon(3); polyVertexCount++; + mesh.EndPolygon(); + polyCount++; + + // Link a poly to a material and texture (even though we don't have any). + mesh.BeginPolygon(0, 0); + mesh.AddPolygon(0); polyVertexCount++; + mesh.AddPolygon(1); polyVertexCount++; + mesh.AddPolygon(2); polyVertexCount++; + mesh.AddPolygon(3); polyVertexCount++; + mesh.EndPolygon(); + polyCount++; + + // Create a group. + mesh.BeginPolygon(-1, -1, 0); + mesh.AddPolygon(0); polyVertexCount++; + mesh.AddPolygon(1); polyVertexCount++; + mesh.AddPolygon(2); polyVertexCount++; + mesh.AddPolygon(3); polyVertexCount++; + mesh.EndPolygon(); + polyCount++; + + // Create a non-legacy group polygon. + mesh.BeginPolygon(-1, -1, 0, false); + mesh.AddPolygon(0); polyVertexCount++; + mesh.AddPolygon(1); polyVertexCount++; + mesh.AddPolygon(2); polyVertexCount++; + mesh.AddPolygon(3); polyVertexCount++; + mesh.EndPolygon(); + polyCount++; + + // Create a polygon with UV indices (even though we don't have any) + mesh.BeginPolygon(0); + mesh.AddPolygon(0, 0); polyVertexCount++; + mesh.AddPolygon(1, 1); polyVertexCount++; + mesh.AddPolygon(2, 2); polyVertexCount++; + mesh.AddPolygon(3, 3); polyVertexCount++; + mesh.EndPolygon(); + polyCount++; + + Assert.AreEqual (mesh.GetPolygonCount (), polyCount); + Assert.AreEqual (mesh.GetPolygonSize (polyCount - 1), 4); + Assert.AreEqual (mesh.GetPolygonVertex (polyCount - 1, 0), 0); + Assert.AreEqual ( mesh.GetPolygonVertexCount (), polyVertexCount); + Assert.AreEqual (mesh.GetPolygonCount (), polyCount); + } + } + + [Test] + public void TestGetPolygonVertexNormal() { + using (FbxMesh mesh = CreateObject("mesh")) { + mesh.InitControlPoints(4); + mesh.SetControlPointAt(new FbxVector4(0, 0, 0), 0); + mesh.SetControlPointAt(new FbxVector4(1, 0, 0), 1); + mesh.SetControlPointAt(new FbxVector4(1, 0, 1), 2); + mesh.SetControlPointAt(new FbxVector4(0, 0, 1), 3); + + mesh.BeginPolygon(); + mesh.AddPolygon(0); + mesh.AddPolygon(1); + mesh.AddPolygon(2); + mesh.AddPolygon(3); + mesh.EndPolygon(); + + // Add normals to the mesh + FbxVector4 normal0 = new FbxVector4(0, 0, 1); + FbxVector4 normal1 = new FbxVector4(0, 1, 0); + FbxVector4 normal2 = new FbxVector4(0, 1, 1); + FbxVector4 normal3 = new FbxVector4(0.301511344577764d, 0.904534033733291d, 0.301511344577764d); + + using (var fbxLayerElement = FbxLayerElementNormal.Create(mesh, "Normals")) { + // Set the Normals on the default layer + FbxLayer fbxLayer = mesh.GetLayer(0); + if (fbxLayer == null) { + mesh.CreateLayer(); + fbxLayer = mesh.GetLayer(0); + } + + fbxLayerElement.SetMappingMode(FbxLayerElement.EMappingMode.eByControlPoint); + fbxLayerElement.SetReferenceMode(FbxLayerElement.EReferenceMode.eDirect); + FbxLayerElementArray fbxElementArray = fbxLayerElement.GetDirectArray(); + + fbxElementArray.Add(normal0); + fbxElementArray.Add(normal1); + fbxElementArray.Add(normal2); + fbxElementArray.Add(normal3); + + fbxLayer.SetNormals(fbxLayerElement); + } + + FbxVector4 readNormal0; + FbxVector4 readNormal1; + FbxVector4 readNormal2; + FbxVector4 readNormal3; + + // test if all normals can be read + Assert.IsTrue(mesh.GetPolygonVertexNormal(0, 0, out readNormal0)); + Assert.IsTrue(mesh.GetPolygonVertexNormal(0, 1, out readNormal1)); + Assert.IsTrue(mesh.GetPolygonVertexNormal(0, 2, out readNormal2)); + Assert.IsTrue(mesh.GetPolygonVertexNormal(0, 3, out readNormal3)); + + // test if the normals have the correct values + Assert.That(normal0.X, Is.EqualTo(readNormal0.X).Using(FloatEqualityComparer.Instance)); + Assert.That(normal0.Y, Is.EqualTo(readNormal0.Y).Using(FloatEqualityComparer.Instance)); + Assert.That(normal0.Z, Is.EqualTo(readNormal0.Z).Using(FloatEqualityComparer.Instance)); + Assert.That(normal0.W, Is.EqualTo(readNormal0.W).Using(FloatEqualityComparer.Instance)); + + Assert.That(normal1.X, Is.EqualTo(readNormal1.X).Using(FloatEqualityComparer.Instance)); + Assert.That(normal1.Y, Is.EqualTo(readNormal1.Y).Using(FloatEqualityComparer.Instance)); + Assert.That(normal1.Z, Is.EqualTo(readNormal1.Z).Using(FloatEqualityComparer.Instance)); + Assert.That(normal1.W, Is.EqualTo(readNormal1.W).Using(FloatEqualityComparer.Instance)); + + Assert.That(normal2.X, Is.EqualTo(readNormal2.X).Using(FloatEqualityComparer.Instance)); + Assert.That(normal2.Y, Is.EqualTo(readNormal2.Y).Using(FloatEqualityComparer.Instance)); + Assert.That(normal2.Z, Is.EqualTo(readNormal2.Z).Using(FloatEqualityComparer.Instance)); + Assert.That(normal2.W, Is.EqualTo(readNormal2.W).Using(FloatEqualityComparer.Instance)); + + Assert.That(normal3.X, Is.EqualTo(readNormal3.X).Using(FloatEqualityComparer.Instance)); + Assert.That(normal3.Y, Is.EqualTo(readNormal3.Y).Using(FloatEqualityComparer.Instance)); + Assert.That(normal3.Z, Is.EqualTo(readNormal3.Z).Using(FloatEqualityComparer.Instance)); + Assert.That(normal3.W, Is.EqualTo(readNormal3.W).Using(FloatEqualityComparer.Instance)); + } + } + + [Test] + public void TestBeginBadPolygonCreation() + { + // Add before begin. This crashes in native FBX SDK. + using (FbxMesh mesh = CreateObject ("mesh")) { + Assert.That(() => mesh.AddPolygon(0), Throws.Exception.TypeOf()); + } + + // End before begin. This is benign in native FBX SDK. + using (FbxMesh mesh = CreateObject ("mesh")) { + Assert.That(() => mesh.EndPolygon(), Throws.Exception.TypeOf()); + } + + // Begin during begin. This is benign in native FBX SDK. + using (FbxMesh mesh = CreateObject ("mesh")) { + mesh.BeginPolygon(); + Assert.That(() => mesh.BeginPolygon(), Throws.Exception.TypeOf()); + } + + // Negative polygon index. Benign in FBX SDK, but it will crash some importers. + using (FbxMesh mesh = CreateObject ("mesh")) { + mesh.BeginPolygon (); + Assert.That(() => mesh.AddPolygon (-1), Throws.Exception.TypeOf()); + } + } + } + + internal class FbxMeshBadBracketingExceptionTest { + [Test] + public void BasicTests() + { + // BadBracketingException() + var xcp = new FbxMesh.BadBracketingException(); + xcp.HelpLink = "http://127.0.0.1"; + Assert.AreEqual("http://127.0.0.1", xcp.HelpLink); + Assert.AreNotEqual("", xcp.Message); + xcp.Source = "source"; + Assert.AreEqual("source", xcp.Source); + Assert.AreNotEqual("", xcp.StackTrace); + Assert.IsNull(xcp.InnerException); + Assert.AreEqual(xcp, xcp.GetBaseException()); + Assert.IsNull(xcp.TargetSite); + Assert.IsNotNull(xcp.Data); + Assert.AreEqual(typeof(FbxMesh.BadBracketingException), xcp.GetType()); + + // BadBracketingException(string message) + xcp = new FbxMesh.BadBracketingException("oops"); + xcp.HelpLink = "http://127.0.0.1"; + Assert.AreEqual("http://127.0.0.1", xcp.HelpLink); + Assert.AreNotEqual("", xcp.Message); + xcp.Source = "source"; + Assert.AreEqual("source", xcp.Source); + Assert.AreNotEqual("", xcp.StackTrace); + Assert.IsNull(xcp.InnerException); + Assert.AreEqual(xcp, xcp.GetBaseException()); + Assert.IsNull(xcp.TargetSite); + Assert.IsNotNull(xcp.Data); + Assert.AreEqual(typeof(FbxMesh.BadBracketingException), xcp.GetType()); + + // BadBracketingException(string message, System.Exception innerException) + xcp = new FbxMesh.BadBracketingException("oops", new System.Exception()); + xcp.HelpLink = "http://127.0.0.1"; + Assert.AreEqual("http://127.0.0.1", xcp.HelpLink); + Assert.AreNotEqual("", xcp.Message); + xcp.Source = "source"; + Assert.AreEqual("source", xcp.Source); + Assert.AreNotEqual("", xcp.StackTrace); + Assert.IsNotNull(xcp.InnerException); + + // The base exception becomes the inner exception here since this represents a chain of exceptions + Assert.AreNotEqual(xcp, xcp.GetBaseException()); + Assert.AreEqual(xcp.InnerException, xcp.GetBaseException()); + Assert.IsNull(xcp.TargetSite); + Assert.IsNotNull(xcp.Data); + Assert.AreEqual(typeof(FbxMesh.BadBracketingException), xcp.GetType()); + + + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMeshTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMeshTest.cs.meta new file mode 100644 index 0000000000..2bdf15a567 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxMeshTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7e452b2c0e2ed45d2abcd05730de345d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeAttributeTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeAttributeTest.cs new file mode 100644 index 0000000000..110057a15c --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeAttributeTest.cs @@ -0,0 +1,39 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxNodeAttributeBase : Base where T : FbxNodeAttribute + { + virtual public void TestBasics(T attr, FbxNodeAttribute.EType typ) + { + Assert.AreEqual(typ, attr.GetAttributeType()); + Assert.AreEqual(attr.Color, attr.FindProperty(FbxNodeAttribute.sColor)); + TestGetter(FbxNodeAttribute.sDefaultColor); + Assert.AreEqual(0, attr.GetNodeCount()); + + var node1 = FbxNode.Create(Manager, "node1"); + var node2 = FbxNode.Create(Manager, "node2"); + node1.SetNodeAttribute(attr); + node2.SetNodeAttribute(attr); + Assert.AreEqual(2, attr.GetNodeCount()); + Assert.AreEqual(node1, attr.GetNode()); + Assert.AreEqual(node2, attr.GetNode(1)); + } + } + + internal class FbxNodeAttributeTest : FbxNodeAttributeBase + { + [Test] + public void TestBasics() { + TestBasics(CreateObject(), FbxNodeAttribute.EType.eUnknown); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeAttributeTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeAttributeTest.cs.meta new file mode 100644 index 0000000000..7aa4563edd --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeAttributeTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 77cabefea21cd4b158c04e5407a85eb8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeTest.cs new file mode 100644 index 0000000000..7682b9b6a5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeTest.cs @@ -0,0 +1,310 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + + internal class FbxNodeTest : Base + { + [Test] + public void TestBasics () + { + bool ok; + FbxNode found; + + // Call every function once in a non-corner-case way + var root = CreateObject("root"); + + Assert.AreEqual(0, root.GetChildCount()); // non-recursive + Assert.AreEqual(0, root.GetChildCount(true)); // recursive + + var t = root.LclTranslation; + Assert.AreEqual(new FbxDouble3(0,0,0), t.Get()); + var s = root.LclScaling; + Assert.AreEqual(new FbxDouble3(1,1,1), s.Get()); + var r = root.LclRotation; + Assert.AreEqual(new FbxDouble3(0,0,0), r.Get()); + var vi = root.VisibilityInheritance; + Assert.AreEqual (true, vi.Get ()); + + var child = CreateObject("child"); + ok = root.AddChild(child); + Assert.IsTrue(ok); + Assert.AreEqual(0, child.GetChildCount()); // non-recursive + Assert.AreEqual(0, child.GetChildCount(true)); // recursive + Assert.AreEqual(1, root.GetChildCount()); // non-recursive + Assert.AreEqual(1, root.GetChildCount(true)); // recursive + found = child.GetParent(); + Assert.AreEqual(root, found); + found = root.GetChild(0); + Assert.AreEqual(child, found); + + var grandchild = CreateObject("grandchild"); + ok = child.AddChild(grandchild); + Assert.IsTrue(ok); + Assert.AreEqual(0, grandchild.GetChildCount()); // non-recursive + Assert.AreEqual(0, grandchild.GetChildCount(true)); // recursive + Assert.AreEqual(1, child.GetChildCount()); // non-recursive + Assert.AreEqual(1, child.GetChildCount(true)); // recursive + Assert.AreEqual(1, root.GetChildCount()); // non-recursive + Assert.AreEqual(2, root.GetChildCount(true)); // recursive + found = root.GetChild(0); + Assert.AreEqual(child, found); + found = child.GetChild(0); + Assert.AreEqual(grandchild, found); + + // Create a node from the grandchild. That's a child. + var greatgrandchild = FbxNode.Create(grandchild, "greatgrandchild"); + Assert.AreEqual(1, grandchild.GetChildCount()); + + found = root.FindChild("child"); // recursive + Assert.AreEqual(child, found); + found = root.FindChild("grandchild"); // recursive + Assert.AreEqual(grandchild, found); + found = root.FindChild("grandchild", pRecursive: false); + Assert.IsNull(found); + greatgrandchild.SetName("greatest"); + found = root.FindChild("greatgrandchild", pRecursive: true, pInitial: false); + Assert.AreEqual(null, found); + found = root.FindChild("greatgrandchild", pRecursive: true, pInitial: true); + Assert.AreEqual(greatgrandchild, found); + + // Destroying the grandchild recursively nukes the great-grandchild and unparents from child. + grandchild.Destroy(pRecursive: true); + Assert.That(() => { greatgrandchild.GetName(); }, Throws.Exception.TypeOf()); + Assert.AreEqual(0, child.GetChildCount()); + + // Destroying the child non-recursively (after adding a new + // grandchild) doesn't destroy the grandchild. + grandchild = CreateObject("grandchild2"); + child.AddChild(grandchild); + child.Destroy(); + Assert.AreEqual("grandchild2", grandchild.GetName()); // actually compare by name => check it doesn't throw + + // That unparents the grandchild. + Assert.IsNull(grandchild.GetParent()); + + // Recursively destroying the root does not destroy the grandchild. + root.Destroy(pRecursive: true); + Assert.AreEqual("grandchild2", grandchild.GetName()); // actually compare by name => check it doesn't throw + + // Test we can remove a child. + var fooNode = FbxNode.Create(grandchild, "foo"); + grandchild.RemoveChild(fooNode); + Assert.IsNull(fooNode.GetParent()); + Assert.AreEqual(0, grandchild.GetChildCount()); + + // Add a material. + var mat = FbxSurfaceMaterial.Create(Manager, "mat"); + Assert.AreEqual(0, fooNode.AddMaterial(mat)); + Assert.That(() => { fooNode.AddMaterial (null); }, Throws.Exception.TypeOf()); + + int matIndex = fooNode.GetMaterialIndex ("mat"); + Assert.GreaterOrEqual (matIndex, 0); + Assert.AreEqual (fooNode.GetMaterial (matIndex), mat); + + // test that invalid material index doesnt crash + fooNode.GetMaterial(int.MinValue); + fooNode.GetMaterial (int.MaxValue); + + Assert.Less (fooNode.GetMaterialIndex ("not a mat"), 0); + // TODO: Find a way to do a null arg check without breaking Create function + // (as they both us pName as a param) + //Assert.That(() => { fooNode.GetMaterialIndex (null); }, Throws.Exception.TypeOf()); + + // Test whether it's a skeleton, camera, etc. It isn't. + Assert.IsNull(fooNode.GetCamera()); + Assert.IsNull(fooNode.GetGeometry()); + Assert.IsNull(fooNode.GetMesh()); + Assert.IsNull(fooNode.GetNodeAttribute()); + Assert.IsNull(fooNode.GetSkeleton()); + Assert.IsNull (fooNode.GetLight ()); + + // Test that we can get at the limits by reference. + Assert.IsNotNull(fooNode.GetTranslationLimits()); + Assert.IsNotNull(fooNode.GetRotationLimits()); + Assert.IsNotNull(fooNode.GetScalingLimits()); + + var limits = fooNode.GetTranslationLimits(); + Assert.IsFalse(limits.GetActive()); + limits.SetActive(true); + Assert.IsTrue(fooNode.GetTranslationLimits().GetActive()); + } + + [Test] + public void TestSetNodeAttribute() + { + using (FbxNode node = CreateObject ("root")) { + var nodeAttribute = FbxNodeAttribute.Create (Manager, "node attribute"); + + // from Fbx Sdk 2017 docs: + // Returns pointer to previous node attribute. NULL if the node didn't have a node + // attribute, or if the new node attribute is equal to the one currently set. + FbxNodeAttribute prevNodeAttribute = node.SetNodeAttribute (nodeAttribute); + + Assert.IsNull (prevNodeAttribute); + Assert.AreEqual (nodeAttribute, node.GetNodeAttribute ()); + + prevNodeAttribute = node.SetNodeAttribute (nodeAttribute); + + Assert.IsNull(prevNodeAttribute); + Assert.AreEqual (nodeAttribute, node.GetNodeAttribute ()); + + prevNodeAttribute = node.SetNodeAttribute(FbxNodeAttribute.Create(Manager, "node attribute 2")); + + Assert.AreEqual (prevNodeAttribute, nodeAttribute); + } + } + + [Test] + public void TestSetNullNodeAttribute() + { + using (FbxNode node = CreateObject ("root")) { + // passing a null NodeAttribute throws a ArgumentNullException + Assert.That (() => { node.SetNodeAttribute (null); }, Throws.Exception.TypeOf()); + Assert.IsNull (node.GetNodeAttribute ()); + } + } + + [Test] + public void TestSetShadingModeToWireFrame() + { + using (FbxNode node = CreateObject ("root")) { + node.SetShadingMode (FbxNode.EShadingMode.eWireFrame); + + Assert.AreEqual (FbxNode.EShadingMode.eWireFrame, node.GetShadingMode ()); + } + } + + [Test] + public void TestSetVisibility() + { + using(FbxNode node = CreateObject("root")){ + node.SetVisibility (false); + Assert.AreEqual (node.GetVisibility (), false); + } + } + + [Test] + public void TestEvaluateGlobalTransform() + { + // make sure it doesn't crash + using (FbxNode node = CreateObject ("root")) { + node.EvaluateGlobalTransform (); + node.EvaluateGlobalTransform (new FbxTime()); + node.EvaluateGlobalTransform (new FbxTime(), FbxNode.EPivotSet.eDestinationPivot); // eSourcePivot is default + node.EvaluateGlobalTransform (new FbxTime(), FbxNode.EPivotSet.eSourcePivot, true); // false is default + node.EvaluateGlobalTransform (new FbxTime(), FbxNode.EPivotSet.eSourcePivot, false, true); // false is default + } + } + + [Test] + public void TestEvaluateLocalTransform() + { + // make sure it doesn't crash + using (FbxNode node = CreateObject ("root")) { + node.EvaluateLocalTransform (); + node.EvaluateLocalTransform (new FbxTime()); + node.EvaluateLocalTransform (new FbxTime(), FbxNode.EPivotSet.eDestinationPivot); // eSourcePivot is default + node.EvaluateLocalTransform (new FbxTime(), FbxNode.EPivotSet.eSourcePivot, true); // false is default + node.EvaluateLocalTransform (new FbxTime(), FbxNode.EPivotSet.eSourcePivot, false, true); // false is default + } + } + + [Test] + public void TestGetMesh(){ + // make sure it doesn't crash + using (FbxNode node = CreateObject ("root")) { + FbxMesh mesh = FbxMesh.Create (Manager, "mesh"); + node.SetNodeAttribute (mesh); + Assert.AreEqual (mesh, node.GetMesh ()); + } + } + + [Test] + public void TestGetLight(){ + // make sure it doesn't crash + using (FbxNode node = CreateObject ("root")) { + FbxLight light = FbxLight.Create (Manager, "light"); + node.SetNodeAttribute (light); + Assert.AreEqual (light, node.GetLight ()); + } + } + + [Test] + public void TestSetRotationScalePivotOffset(){ + using (FbxNode node = CreateObject ("root")) { + FbxVector4 rot = new FbxVector4 (1, 2, 3); + node.SetPreRotation (FbxNode.EPivotSet.eSourcePivot, rot); + Assert.AreEqual(rot, node.GetPreRotation(FbxNode.EPivotSet.eSourcePivot)); + Assert.AreNotEqual (rot, node.GetPreRotation (FbxNode.EPivotSet.eDestinationPivot)); + + node.SetPostRotation (FbxNode.EPivotSet.eSourcePivot, rot); + Assert.AreEqual (rot, node.GetPostRotation (FbxNode.EPivotSet.eSourcePivot)); + + rot.X = 5; + node.SetPostRotation (FbxNode.EPivotSet.eDestinationPivot, rot); + Assert.AreEqual (rot, node.GetPostRotation (FbxNode.EPivotSet.eDestinationPivot)); + + node.SetRotationPivot (FbxNode.EPivotSet.eSourcePivot, rot); + Assert.AreEqual (rot, node.GetRotationPivot (FbxNode.EPivotSet.eSourcePivot)); + + node.SetRotationOffset (FbxNode.EPivotSet.eSourcePivot, rot); + Assert.AreEqual (rot, node.GetRotationOffset (FbxNode.EPivotSet.eSourcePivot)); + + node.SetScalingPivot (FbxNode.EPivotSet.eSourcePivot, rot); + Assert.AreEqual (rot, node.GetScalingPivot (FbxNode.EPivotSet.eSourcePivot)); + + node.SetScalingOffset (FbxNode.EPivotSet.eSourcePivot, rot); + Assert.AreEqual (rot, node.GetScalingOffset (FbxNode.EPivotSet.eSourcePivot)); + } + } + + [Test] + public void TestSetPivotState(){ + using (FbxNode node = CreateObject ("root")) { + // make sure it doesn't crash + node.SetPivotState (FbxNode.EPivotSet.eSourcePivot, FbxNode.EPivotState.ePivotActive); + } + } + + [Test] + public void TestSetRotationActive(){ + using (FbxNode node = CreateObject ("root")) { + node.SetRotationActive (true); + Assert.AreEqual(true, node.GetRotationActive()); + } + } + + [Test] + public void TestSetRotationOrder(){ + using (FbxNode node = CreateObject ("root")) { + // test that it works + node.SetRotationOrder (FbxNode.EPivotSet.eSourcePivot, FbxEuler.EOrder.eOrderXZY); + int output = 0; + node.GetRotationOrder (FbxNode.EPivotSet.eSourcePivot, out output); + Assert.AreEqual (FbxEuler.EOrder.eOrderXZY, (FbxEuler.EOrder)output); + + // same with destination pivot + node.SetRotationOrder (FbxNode.EPivotSet.eDestinationPivot, FbxEuler.EOrder.eOrderZXY); + output = 0; + node.GetRotationOrder (FbxNode.EPivotSet.eDestinationPivot, out output); + Assert.AreEqual (FbxEuler.EOrder.eOrderZXY, (FbxEuler.EOrder)output); + } + } + + [Test] + public void TestTransformInheritType(){ + using (FbxNode node = CreateObject ("root")) { + node.SetTransformationInheritType (FbxTransform.EInheritType.eInheritRrs); + Assert.AreEqual (FbxTransform.EInheritType.eInheritRrs, node.InheritType.Get()); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeTest.cs.meta new file mode 100644 index 0000000000..21e4f155be --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNodeTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fdb57acff7a8e4042b4282107e02627f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNullTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNullTest.cs new file mode 100644 index 0000000000..ed9e07dfea --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNullTest.cs @@ -0,0 +1,32 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxNullTest : FbxNodeAttributeBase + { + [Test] + public void TestBasics() { + var thenull = CreateObject(); + base.TestBasics(thenull, FbxNodeAttribute.EType.eNull); + + Assert.AreEqual(100.0, thenull.GetSizeDefaultValue()); + TestGetter(FbxNull.sSize); + TestGetter(FbxNull.sLook); + Assert.AreEqual(thenull.Size, thenull.FindProperty(FbxNull.sSize)); + Assert.AreEqual(thenull.Look, thenull.FindProperty(FbxNull.sLook)); + + thenull.Size.Set(7); + thenull.Reset(); + Assert.AreEqual(FbxNull.sDefaultSize, thenull.Size.Get()); + Assert.AreEqual(FbxNull.sDefaultLook, thenull.Look.Get()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNullTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNullTest.cs.meta new file mode 100644 index 0000000000..76f33e9014 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNullTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92a812b0261cb4799b62af539dc50679 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNurbsCurveTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNurbsCurveTest.cs new file mode 100644 index 0000000000..c2324a438e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNurbsCurveTest.cs @@ -0,0 +1,75 @@ +using NUnit.Framework; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxNurbsCurveTest : FbxGeometryTestBase + { + [Test] + public void TestBasics() + { + base.TestBasics(CreateObject("nurbscurve"), FbxNodeAttribute.EType.eNurbsCurve); + + using (FbxNurbsCurve curve = CreateObject("nurbscurve")) + { + // returns -1 if the curve has not been initialized. + Assert.That(curve.GetSpanCount(), Is.EqualTo(-1)); + + curve.SetOrder(4); + curve.SetDimension(FbxNurbsCurve.EDimension.e3D); + + curve.InitControlPoints(7, FbxNurbsCurve.EType.eOpen); + curve.SetControlPointAt(new FbxVector4(-104.648651123047, -55.7837829589844, 0, 1), 0); + curve.SetControlPointAt(new FbxVector4(-109.405403137207, 22.9189186096191, 0, 1), 1); + curve.SetControlPointAt(new FbxVector4(-73.5135116577148, 76.5405426025391, 0, 1), 2); + curve.SetControlPointAt(new FbxVector4(21.1891899108887, 91.2432403564453, 0, 1), 3); + curve.SetControlPointAt(new FbxVector4(83.0270309448242, 62.7027015686035, 0, 1), 4); + curve.SetControlPointAt(new FbxVector4(109.405403137207, 18.1621627807617, 0, 1), 5); + curve.SetControlPointAt(new FbxVector4(31.5675678253174, -91.2432403564453, 0, 1), 6); + + var knotCount = curve.GetKnotCount(); + Assert.AreEqual(curve.GetKnotCount(), 11); + + Assert.That(() => curve.SetKnotVectorAt(-1, 0), Throws.Exception.TypeOf()); + Assert.That(() => curve.SetKnotVectorAt(11, 0), Throws.Exception.TypeOf()); + curve.SetKnotVectorAt(0, 0); + curve.SetKnotVectorAt(1, 0); + curve.SetKnotVectorAt(2, 0); + curve.SetKnotVectorAt(3, 0); + curve.SetKnotVectorAt(4, 0.25); + curve.SetKnotVectorAt(5, 0.5); + curve.SetKnotVectorAt(6, 0.75); + curve.SetKnotVectorAt(7, 1); + curve.SetKnotVectorAt(8, 1); + curve.SetKnotVectorAt(9, 1); + curve.SetKnotVectorAt(10, 1); + + Assert.That(() => curve.GetKnotVectorAt(-1), Throws.Exception.TypeOf()); + Assert.That(() => curve.GetKnotVectorAt(11), Throws.Exception.TypeOf()); + Assert.That(curve.GetKnotVectorAt(0), Is.EqualTo(0)); + Assert.That(curve.GetKnotVectorAt(4), Is.EqualTo(0.25)); + Assert.That(curve.GetKnotVectorAt(6), Is.EqualTo(0.75)); + Assert.That(curve.GetKnotVectorAt(10), Is.EqualTo(1)); + + curve.SetStep(-1); + curve.SetStep(int.MaxValue); + curve.SetStep(2); + Assert.That(curve.GetStep(), Is.EqualTo(2)); + + Assert.That(curve.IsRational(), Is.False); + + // Calculation is as follows: + // S = Number of spans N = Number of CVs M = Order of the curve. + // S = N - M + 1; + // N includes the duplicate CVs for closed and periodic curves. + Assert.That(curve.GetSpanCount(), Is.EqualTo(4)); + + Assert.That(curve.IsBezier(), Is.False); + Assert.That(curve.IsPolyline(), Is.False); + + Assert.AreEqual(curve.GetOrder(), 4); + Assert.AreEqual(curve.GetDimension(), FbxNurbsCurve.EDimension.e3D); + Assert.AreEqual(curve.GetControlPointsCount(), 7); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNurbsCurveTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNurbsCurveTest.cs.meta new file mode 100644 index 0000000000..e41e3c58bd --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxNurbsCurveTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6acc5713ea8177640a5ac2c070977a89 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxObjectTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxObjectTest.cs new file mode 100644 index 0000000000..64b9356ef4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxObjectTest.cs @@ -0,0 +1,33 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + + internal class FbxObjectTest : Base + { + [Test] + public void TestUTF8() + { + // make sure japanese survives the round-trip. + string katakana = "片仮名"; + FbxObject obj = FbxObject.Create(Manager, katakana); + Assert.AreEqual(katakana, obj.GetName()); + } + + [Test] + public void TestGetManager () + { + using (FbxObject obj = FbxObject.Create (Manager, "")) { + FbxManager fbxManager2 = obj.GetFbxManager(); + Assert.AreEqual(Manager, fbxManager2); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxObjectTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxObjectTest.cs.meta new file mode 100644 index 0000000000..b27e39428b --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxObjectTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a85822e35ce64ecfbcf8989bb9f83c5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPoseTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPoseTest.cs new file mode 100644 index 0000000000..c9e4b4e23a --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPoseTest.cs @@ -0,0 +1,89 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxPoseTest : Base + { + + [Test] + public void TestSetIsBindPose () + { + var fbxPose = CreateObject ("pose"); + fbxPose.SetIsBindPose (false); + Assert.IsFalse (fbxPose.IsBindPose ()); + } + + [Test] + public void TestAdd() + { + using(var fbxPose = CreateObject ("pose")){ + using(var fbxNode = FbxNode.Create (Manager, "node")) + using(var fbxMatrix = new FbxMatrix ()){ + + Assert.AreEqual (0, fbxPose.GetCount ()); + + // test basic use + int index = fbxPose.Add (fbxNode, fbxMatrix); // returns -1 if it fails + Assert.Greater(index, -1); + Assert.AreEqual (fbxPose.GetNode (index), fbxNode); + Assert.AreEqual (fbxPose.GetMatrix (index), fbxMatrix); + + Assert.AreEqual (1, fbxPose.GetCount ()); + + // test adding null + Assert.That (() => { + fbxPose.Add (null, null); + }, Throws.Exception.TypeOf ()); + + fbxPose.Add (FbxNode.Create(Manager,"node1"), fbxMatrix); + Assert.AreEqual (2, fbxPose.GetCount ()); + } + + var node = FbxNode.Create (Manager, "node1"); + using (var fbxMatrix = new FbxMatrix ()) { + // test adding invalid node + node.Destroy (); + Assert.That (() => { + fbxPose.Add (node, fbxMatrix); + }, Throws.Exception.TypeOf ()); + } + + using (var fbxNode = FbxNode.Create (Manager, "node2")){ + var fbxMatrix = new FbxMatrix (); + // test adding invalid matrix + fbxMatrix.Dispose (); + Assert.That (() => { + fbxPose.Add (fbxNode, fbxMatrix); + }, Throws.Exception.TypeOf ()); + } + + using (var fbxNode = FbxNode.Create (Manager, "node3")) + using (var fbxMatrix = new FbxMatrix ()) { + // test with local matrix arg + int index = fbxPose.Add (fbxNode, fbxMatrix, true); // false is default + Assert.Greater(index, -1); + Assert.AreEqual (fbxPose.GetNode (index), fbxNode); + Assert.AreEqual (fbxPose.GetMatrix (index), fbxMatrix); + } + + using (var fbxNode = FbxNode.Create (Manager, "node4")) + using (var fbxMatrix = new FbxMatrix ()) { + // test with multiple bind pose arg + int index = fbxPose.Add (fbxNode, fbxMatrix, false, false); // true is default + Assert.Greater(index, -1); + Assert.AreEqual (fbxPose.GetNode (index), fbxNode); + Assert.AreEqual (fbxPose.GetMatrix (index), fbxMatrix); + } + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPoseTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPoseTest.cs.meta new file mode 100644 index 0000000000..ab845417d8 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPoseTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 377ffb13277e640a49cf09b83a79eccd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPropertyTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPropertyTest.cs new file mode 100644 index 0000000000..437f7b2486 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPropertyTest.cs @@ -0,0 +1,434 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxPropertyTest : TestBase + { + [Test] + public void TestEquality() { + using(var manager = FbxManager.Create()) { + // FbxProperty + var node = FbxNode.Create(manager, "node"); + var prop1 = FbxProperty.Create(node, Globals.FbxBoolDT, "bool1"); + var prop2 = FbxProperty.Create(node, Globals.FbxBoolDT, "bool2"); + var prop1copy = node.FindProperty("bool1"); + EqualityTester.TestEquality(prop1, prop2, prop1copy); + + // FbxPropertyT + var vis1 = node.VisibilityInheritance; + var vis2 = FbxNode.Create(manager, "node2").VisibilityInheritance; + var vis1copy = vis1; // TODO: node.FindProperty("Visibility Inheritance"); -- but that has a different proxy type + EqualityTester.TestEquality(vis1, vis2, vis1copy); + + // FbxPropertyT + var inhType1 = node.InheritType; + var inhType2 = FbxNode.Create (manager, "node3").InheritType; + var inhType1Copy = inhType1; // TODO: node.FindProperty("InheritType"); + EqualityTester.TestEquality (inhType1, inhType2, inhType1Copy); + + // FbxPropertyT + var lambert = FbxSurfaceLambert.Create(manager, "lambert"); + var emissiveCopy = lambert.EmissiveFactor; // TODO: lambert.FindProperty("EmissiveFactor"); + EqualityTester.TestEquality(lambert.EmissiveFactor, lambert.AmbientFactor, emissiveCopy); + + // FbxPropertyT + var lclTranslationCopy = node.LclTranslation; // TODO: node.FindProperty("Lcl Translation"); + EqualityTester.TestEquality(node.LclTranslation, node.LclRotation, lclTranslationCopy); + + // FbxPropertyT + var light = FbxLight.Create(manager, "light"); + EqualityTester.TestEquality(light.LeftBarnDoor, light.RightBarnDoor, light.LeftBarnDoor); + + // FbxPropertyT + var constraint = FbxConstraintAim.Create (manager, "constraint"); + var constraint2 = FbxConstraintAim.Create (manager, "constraint2"); + var worldUpTypeCopy = constraint.WorldUpType; // TODO: constraint.FindProperty("WorldUpType"); + EqualityTester.TestEquality (constraint.WorldUpType, constraint2.WorldUpType, worldUpTypeCopy); + + // FbxPropertyT<> for FbxTexture enums + var tex1 = FbxTexture.Create(manager, "tex1"); + var tex2 = FbxTexture.Create(manager, "tex2"); + var blendCopy = tex1.CurrentTextureBlendMode; // TODO: tex1.FindProperty(...) + EqualityTester.TestEquality(tex1.CurrentTextureBlendMode, tex2.CurrentTextureBlendMode, blendCopy); + var wrapCopy = tex1.WrapModeU; // TODO: tex1.FindProperty(...) + EqualityTester.TestEquality(tex1.WrapModeU, tex2.WrapModeU, wrapCopy); + + // FbxPropertyT + var null1 = FbxNull.Create(manager, "null1"); + var null2 = FbxNull.Create(manager, "null2"); + EqualityTester.TestEquality(null1.Look, null2.Look, null1.Look); + + // FbxPropertyT + var marker1 = FbxMarker.Create(manager, "marker1"); + var marker2 = FbxMarker.Create(manager, "marker2"); + EqualityTester.TestEquality(marker1.Look, marker2.Look, marker1.Look); + + // FbxPropertyT + var impl = FbxImplementation.Create(manager, "impl"); + var renderAPIcopy = impl.RenderAPI; // TODO: impl.FindProperty("RenderAPI"); + EqualityTester.TestEquality(impl.RenderAPI, impl.RenderAPIVersion, renderAPIcopy); + + // FbxPropertyT<> for FbxCamera enum EProjectionType + var cam1 = FbxCamera.Create(manager, "cam1"); + var cam2 = FbxCamera.Create(manager, "cam2"); + var projectionCopy = cam1.ProjectionType; + EqualityTester.TestEquality(cam1.ProjectionType, cam2.ProjectionType, projectionCopy); + + // FbxPropertyT<> for FbxLight enum EType + var light1 = FbxLight.Create(manager, "light1"); + var light2 = FbxLight.Create(manager, "light2"); + var typeCopy = light1.LightType; + EqualityTester.TestEquality(light1.LightType, light2.LightType, typeCopy); + var lightShapeCopy = light1.AreaLightShape; + EqualityTester.TestEquality(light1.AreaLightShape, light2.AreaLightShape, lightShapeCopy); + var decayCopy = light1.DecayType; + EqualityTester.TestEquality(light1.DecayType, light2.DecayType, decayCopy); + var floatCopy = light1.LeftBarnDoor; + EqualityTester.TestEquality(light1.LeftBarnDoor, light2.LeftBarnDoor, floatCopy); + } + } + + // tests that should work for any subclass of FbxProperty + public static void GenericPropertyTests(T property, FbxObject parent, string propertyName, FbxDataType dataType) where T:FbxProperty{ + Assert.IsTrue(property.IsValid()); + Assert.AreEqual(dataType, property.GetPropertyDataType()); + Assert.AreEqual(propertyName, property.GetName()); + Assert.AreEqual(propertyName, property.ToString()); + Assert.AreEqual(propertyName, property.GetHierarchicalName()); + Assert.AreEqual(propertyName, property.GetLabel(true)); + property.SetLabel("label"); + Assert.AreEqual("label", property.GetLabel()); + Assert.AreEqual(parent, property.GetFbxObject()); + Assert.AreEqual(property.GetFbxObject(), parent); // test it both ways just in case equals is busted + + // test the flags using the animatable flag + property.ModifyFlag(FbxPropertyFlags.EFlags.eAnimatable, true); + Assert.IsTrue(property.GetFlag(FbxPropertyFlags.EFlags.eAnimatable)); + Assert.AreNotEqual(0, property.GetFlags() | FbxPropertyFlags.EFlags.eAnimatable); + property.SetFlagInheritType(FbxPropertyFlags.EFlags.eAnimatable, FbxPropertyFlags.EInheritType.eInherit); + Assert.AreEqual(FbxPropertyFlags.EInheritType.eInherit, property.GetFlagInheritType(FbxPropertyFlags.EFlags.eAnimatable)); + + // not clear when this ever returns true: whether we set animatable + // to true or false it says it has the default value. + Assert.IsFalse(property.ModifiedFlag(FbxPropertyFlags.EFlags.eAnimatable)); + + // Test setting the value with the generic float accessor. + // The value may not round-trip: a bool property will go to 1.0 + property.Set(5.0f); + TestGetter (property.GetFloat()); + TestGetter (property.GetBool ()); + TestGetter (property.GetDouble ()); + TestGetter (property.GetFbxColor ()); + TestGetter (property.GetFbxDouble3 ()); + TestGetter (property.GetString ()); + TestGetter (property.GetInt ()); + + // Test setting the value with color accessor + property.Set (new FbxColor ()); + + // Test setting the value with string accessor + property.Set ("MyCustomProperty"); + + // test GetCurve(). Just make sure it doesn't crash. We can't + // generically test actually getting curves, because the details + // (channel names etc) depend on the type of property and its + // flags. + FbxAnimLayer layer = FbxAnimLayer.Create(parent, "layer"); + property.GetCurve (layer); + property.GetCurve (layer, true); + property.GetCurve (layer, "asdf"); + property.GetCurve (layer, "asdf", true); + property.GetCurve (layer, "asdf", "hjkl", true); + Assert.That (() => { property.GetCurve(null); }, Throws.Exception.TypeOf()); + + // test GetCurveNode() (make sure it doesn't crash) + FbxAnimCurveNode curveNode = property.GetCurveNode(); + Assert.IsNull (curveNode); // didn't create one so should be null + + curveNode = property.GetCurveNode (true); + // TODO: figure out why the curve node doesn't get created + //Assert.IsNotNull (curveNode); + + property.GetCurveNode (FbxAnimStack.Create (parent, "anim stack")); + property.GetCurveNode (FbxAnimStack.Create (parent, "anim stack"), true); + property.GetCurveNode (FbxAnimLayer.Create (parent, "anim layer")); + property.GetCurveNode (FbxAnimLayer.Create (parent, "anim layer"), true); + + Assert.That (() => { property.GetCurveNode((FbxAnimStack)null); }, Throws.Exception.TypeOf()); + Assert.That (() => { property.GetCurveNode((FbxAnimLayer)null); }, Throws.Exception.TypeOf()); + + using (FbxManager manager = FbxManager.Create ()) { + // Test ConnectSrcObject functions + FbxObject obj = FbxObject.Create (manager, "obj"); + bool result = property.ConnectSrcObject (obj); + Assert.IsTrue (result); + Assert.IsTrue (property.IsConnectedSrcObject (obj)); + Assert.AreEqual (1, property.GetSrcObjectCount ()); + Assert.AreEqual (obj, property.GetSrcObject ()); + Assert.AreEqual (obj, property.GetSrcObject (0)); + Assert.AreEqual (obj, property.FindSrcObject ("obj")); + Assert.IsNull (property.FindSrcObject ("obj", 1)); + Assert.That (() => { property.FindSrcObject(null); }, Throws.Exception.TypeOf()); + + Assert.IsTrue (property.DisconnectSrcObject (obj)); + Assert.IsFalse (property.IsConnectedSrcObject (obj)); + + Assert.That (() => { property.ConnectSrcObject(null); }, Throws.Exception.TypeOf()); + + Assert.IsTrue (property.ConnectSrcObject (obj, FbxConnection.EType.eData)); + + Assert.IsTrue(property.DisconnectAllSrcObject()); + + // Test ConnectDstObject functions + result = property.ConnectDstObject (obj); + Assert.IsTrue (result); + Assert.IsTrue (property.IsConnectedDstObject (obj)); + Assert.AreEqual (1, property.GetDstObjectCount ()); + Assert.AreEqual (obj, property.GetDstObject ()); + Assert.AreEqual (obj, property.GetDstObject (0)); + Assert.AreEqual (obj, property.FindDstObject ("obj")); + Assert.IsNull (property.FindDstObject ("obj", 1)); + Assert.That (() => { property.FindDstObject(null); }, Throws.Exception.TypeOf()); + + Assert.IsTrue (property.DisconnectDstObject (obj)); + Assert.IsFalse (property.IsConnectedDstObject (obj)); + + Assert.That (() => { property.ConnectDstObject(null); }, Throws.Exception.TypeOf()); + + Assert.IsTrue (property.ConnectDstObject (obj, FbxConnection.EType.eData)); + + Assert.IsTrue(property.DisconnectAllDstObject()); + } + + // verify this in the future: will dispose destroy? + property.Dispose(); + } + + [Test] + public void BasicTests () + { + using (var manager = FbxManager.Create()) { + // FbxPropertyT example: VisibilityInheritance on a node + var node = FbxNode.Create(manager, "node"); + GenericPropertyTests (node.VisibilityInheritance, node, "Visibility Inheritance", Globals.FbxVisibilityInheritanceDT); + + var property = node.VisibilityInheritance; + property.Set(false); + Assert.AreEqual(false, property.Get()); + Assert.AreEqual(false, property.EvaluateValue()); + Assert.AreEqual(false, property.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(false, property.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using(var manager = FbxManager.Create()) { + // FbxPropertyT example: several of them on a Lambert shader + var obj = FbxSurfaceLambert.Create(manager, "lambert"); + GenericPropertyTests (obj.EmissiveFactor, obj, "EmissiveFactor", Globals.FbxDoubleDT); + + var property = obj.EmissiveFactor; + property.Set(5.0); // bool Set is not accessible here! + Assert.AreEqual(5.0, property.Get()); + Assert.AreEqual(5.0, property.EvaluateValue()); + Assert.AreEqual(5.0, property.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(5.0, property.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using(var manager = FbxManager.Create()) { + // FbxPropertyT example: the LclTranslation on a node + var node = FbxNode.Create(manager, "node"); + GenericPropertyTests (node.LclTranslation, node, "Lcl Translation", Globals.FbxLocalTranslationDT); + + var property = node.LclTranslation; + property.Set(new FbxDouble3(1,2,3)); + Assert.AreEqual(new FbxDouble3(1, 2, 3), property.Get()); + Assert.AreEqual(new FbxDouble3(1, 2, 3), property.EvaluateValue()); + Assert.AreEqual(new FbxDouble3(1, 2, 3), property.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(new FbxDouble3(1, 2, 3), property.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using(var manager = FbxManager.Create()) { + // FbxPropertyT example: the LeftBarnDoor on a light + var light = FbxLight.Create(manager, "light"); + GenericPropertyTests(light.LeftBarnDoor, light, "LeftBarnDoor", Globals.FbxFloatDT); + + var property = light.LeftBarnDoor; + light.LeftBarnDoor.Set(5.0f); + Assert.AreEqual(5.0f, light.LeftBarnDoor.Get()); + Assert.AreEqual(5.0f, property.EvaluateValue()); + Assert.AreEqual(5.0f, property.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(5.0f, property.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create ()) { + // FbxPropertyT example: the WorldUpType on an aim constraint + var constraint = FbxConstraintAim.Create (manager, "constraint"); + GenericPropertyTests (constraint.WorldUpType, constraint, "WorldUpType", Globals.FbxEnumDT); + + var property = constraint.WorldUpType; + int value = (int)FbxConstraintAim.EWorldUp.eAimAtObjectUp; + constraint.WorldUpType.Set (value); + Assert.That (constraint.WorldUpType.Get (), Is.EqualTo (value)); + Assert.That (property.EvaluateValue (), Is.EqualTo (value)); + Assert.That (property.EvaluateValue (FbxTime.FromSecondDouble (5)), Is.EqualTo (value)); + Assert.That (property.EvaluateValue (FbxTime.FromSecondDouble (5), true), Is.EqualTo (value)); + } + + using (var manager = FbxManager.Create()) { + // FbxPropertyT example: the description of a shader implementation + var impl = FbxImplementation.Create(manager, "name"); + GenericPropertyTests (impl.RenderAPI, impl, "RenderAPI", Globals.FbxStringDT); + + var property = impl.RenderAPI; + property.Set("a value"); + Assert.AreEqual("a value", property.Get()); + + // animated strings come out as empty-string + Assert.AreEqual("", property.EvaluateValue()); + Assert.AreEqual("", property.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual("", property.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create()) { + // FbxPropertyT for FbxTexture enums EBlendMode and EWrapMode + var tex = FbxTexture.Create(manager, "tex"); + + FbxPropertyTest.GenericPropertyTests(tex.CurrentTextureBlendMode, tex, "CurrentTextureBlendMode", Globals.FbxEnumDT); + tex.CurrentTextureBlendMode.Set(FbxTexture.EBlendMode.eAdditive); + Assert.AreEqual(FbxTexture.EBlendMode.eAdditive, tex.CurrentTextureBlendMode.Get()); + Assert.AreEqual(FbxTexture.EBlendMode.eAdditive, tex.CurrentTextureBlendMode.EvaluateValue()); + Assert.AreEqual(FbxTexture.EBlendMode.eAdditive, tex.CurrentTextureBlendMode.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxTexture.EBlendMode.eAdditive, tex.CurrentTextureBlendMode.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + + FbxPropertyTest.GenericPropertyTests(tex.WrapModeU, tex, "WrapModeU", Globals.FbxEnumDT); + tex.WrapModeU.Set(FbxTexture.EWrapMode.eClamp); + Assert.AreEqual(FbxTexture.EWrapMode.eClamp, tex.WrapModeU.Get()); + Assert.AreEqual(FbxTexture.EWrapMode.eClamp, tex.WrapModeU.EvaluateValue()); + Assert.AreEqual(FbxTexture.EWrapMode.eClamp, tex.WrapModeU.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxTexture.EWrapMode.eClamp, tex.WrapModeU.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create()) { + // FbxPropertyT + var null1 = FbxNull.Create(manager, "null1"); + + FbxPropertyTest.GenericPropertyTests(null1.Look, null1, "Look", Globals.FbxEnumDT); + null1.Look.Set(FbxNull.ELook.eCross); + Assert.AreEqual(FbxNull.ELook.eCross, null1.Look.Get()); + Assert.AreEqual(FbxNull.ELook.eCross, null1.Look.EvaluateValue()); + Assert.AreEqual(FbxNull.ELook.eCross, null1.Look.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxNull.ELook.eCross, null1.Look.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create()) { + // FbxPropertyT + var marker1 = FbxMarker.Create(manager, "marker1"); + + FbxPropertyTest.GenericPropertyTests(marker1.Look, marker1, "Look", Globals.FbxEnumDT); + marker1.Look.Set(FbxMarker.ELook.eCapsule); + Assert.AreEqual(FbxMarker.ELook.eCapsule, marker1.Look.Get()); + Assert.AreEqual(FbxMarker.ELook.eCapsule, marker1.Look.EvaluateValue()); + Assert.AreEqual(FbxMarker.ELook.eCapsule, marker1.Look.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxMarker.ELook.eCapsule, marker1.Look.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create()) { + // FbxPropertyT for FbxCamera enum EProjectionType + var camera = FbxCamera.Create(manager, "camera"); + + FbxPropertyTest.GenericPropertyTests(camera.ProjectionType, camera, "CameraProjectionType", Globals.FbxEnumDT); + camera.ProjectionType.Set(FbxCamera.EProjectionType.ePerspective); + Assert.AreEqual(FbxCamera.EProjectionType.ePerspective, camera.ProjectionType.Get()); + Assert.AreEqual(FbxCamera.EProjectionType.ePerspective, camera.ProjectionType.EvaluateValue()); + Assert.AreEqual(FbxCamera.EProjectionType.ePerspective, camera.ProjectionType.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxCamera.EProjectionType.ePerspective, camera.ProjectionType.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create()) { + // FbxPropertyT for FbxCamera enum EGateFit + var camera = FbxCamera.Create(manager, "camera"); + + FbxPropertyTest.GenericPropertyTests(camera.GateFit, camera, "GateFit", Globals.FbxEnumDT); + camera.GateFit.Set(FbxCamera.EGateFit.eFitHorizontal); + Assert.AreEqual(FbxCamera.EGateFit.eFitHorizontal, camera.GateFit.Get()); + Assert.AreEqual(FbxCamera.EGateFit.eFitHorizontal, camera.GateFit.EvaluateValue()); + Assert.AreEqual(FbxCamera.EGateFit.eFitHorizontal, camera.GateFit.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxCamera.EGateFit.eFitHorizontal, camera.GateFit.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create()) { + // FbxPropertyT + var node = FbxNode.Create(manager, "node"); + + FbxPropertyTest.GenericPropertyTests(node.InheritType, node, "InheritType", Globals.FbxEnumDT); + node.InheritType.Set(FbxTransform.EInheritType.eInheritRSrs); + Assert.AreEqual(FbxTransform.EInheritType.eInheritRSrs, node.InheritType.Get()); + Assert.AreEqual(FbxTransform.EInheritType.eInheritRSrs, node.InheritType.EvaluateValue()); + Assert.AreEqual(FbxTransform.EInheritType.eInheritRSrs, node.InheritType.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxTransform.EInheritType.eInheritRSrs, node.InheritType.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create()) { + // FbxPropertyT for FbxLight enums + var light = FbxLight.Create(manager, "light"); + + FbxPropertyTest.GenericPropertyTests(light.LightType, light, "LightType", Globals.FbxEnumDT); + light.LightType.Set(FbxLight.EType.eSpot); + Assert.AreEqual(FbxLight.EType.eSpot, light.LightType.Get()); + Assert.AreEqual(FbxLight.EType.eSpot, light.LightType.EvaluateValue()); + Assert.AreEqual(FbxLight.EType.eSpot, light.LightType.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxLight.EType.eSpot, light.LightType.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + + FbxPropertyTest.GenericPropertyTests(light.AreaLightShape, light, "AreaLightShape", Globals.FbxEnumDT); + light.AreaLightShape.Set(FbxLight.EAreaLightShape.eSphere); + Assert.AreEqual(FbxLight.EAreaLightShape.eSphere, light.AreaLightShape.Get()); + Assert.AreEqual(FbxLight.EAreaLightShape.eSphere, light.AreaLightShape.EvaluateValue()); + Assert.AreEqual(FbxLight.EAreaLightShape.eSphere, light.AreaLightShape.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxLight.EAreaLightShape.eSphere, light.AreaLightShape.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + + FbxPropertyTest.GenericPropertyTests(light.DecayType, light, "DecayType", Globals.FbxEnumDT); + light.DecayType.Set(FbxLight.EDecayType.eCubic); + Assert.AreEqual(FbxLight.EDecayType.eCubic, light.DecayType.Get()); + Assert.AreEqual(FbxLight.EDecayType.eCubic, light.DecayType.EvaluateValue()); + Assert.AreEqual(FbxLight.EDecayType.eCubic, light.DecayType.EvaluateValue(FbxTime.FromSecondDouble(5))); + Assert.AreEqual(FbxLight.EDecayType.eCubic, light.DecayType.EvaluateValue(FbxTime.FromSecondDouble(5), true)); + } + + using (var manager = FbxManager.Create()) { + // Test all the create and destroy operations + FbxProperty root, child; + var obj = FbxObject.Create(manager, "obj"); + + Assert.IsNotNull(FbxProperty.Create(obj, Globals.FbxStringDT, "a")); + Assert.IsNotNull(FbxProperty.Create(obj, Globals.FbxStringDT, "b", "label")); + Assert.IsNotNull(FbxProperty.Create(obj, Globals.FbxStringDT, "c", "label", false)); + bool didFind; + Assert.IsNotNull(FbxProperty.Create(obj, Globals.FbxStringDT, "c", "label", true, out didFind)); + Assert.IsTrue(didFind); + + root = FbxProperty.Create(obj, Globals.FbxCompoundDT, "root"); + + child = FbxProperty.Create(root, Globals.FbxStringDT, "a"); + Assert.IsNotNull(child); + Assert.IsNotNull(FbxProperty.Create(root, Globals.FbxStringDT, "b", "label")); + Assert.IsNotNull(FbxProperty.Create(root, Globals.FbxStringDT, "c", "label", false)); + Assert.IsNotNull(FbxProperty.Create(root, Globals.FbxStringDT, "c", "label", true, out didFind)); + Assert.IsTrue(didFind); + + child.Destroy(); + + root.DestroyChildren(); + Assert.IsNotNull(FbxProperty.Create(root, Globals.FbxStringDT, "c", "label", true, out didFind)); + Assert.IsFalse(didFind); + + root.DestroyRecursively(); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPropertyTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPropertyTest.cs.meta new file mode 100644 index 0000000000..c169df4f5b --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxPropertyTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8169a9637acba4ab8859ef6f4cd41edb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxQuaternionTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxQuaternionTest.cs new file mode 100644 index 0000000000..66b18b2bf1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxQuaternionTest.cs @@ -0,0 +1,172 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxQuaternionTest + { + /// + /// Check that two quaternions represent a similar rotation. + /// + /// Either they're equal (within tolerance) or they're exactly opposite. + /// Note that a slerp will go opposite directions if they're opposite. + /// + /// If you want to use the boolean result, pass in 'nothrow' as true. + /// Otherwise a failed comparision will throw an exception. + /// + public static bool AssertSimilar(FbxQuaternion expected, FbxQuaternion actual, + double tolerance = 1e-10, bool nothrow = false) + { + // Are they bitwise equal? + if (expected == actual) { + return true; + } + + // Compute the dot product. It'll be +1 or -1 if they're the same rotation. + if (System.Math.Abs(expected.DotProduct(actual)) >= 1 - tolerance) { + return true; + } + + // Fail. Print it out nicely. + if (!nothrow) { Assert.AreEqual(expected, actual); } + return false; + } + + public static bool AssertSimilar(FbxVector4 euler, FbxQuaternion actual, + double tolerance = 1e-10, bool nothrow = false) + { + var expected = new FbxQuaternion(); + expected.ComposeSphericalXYZ(euler); + return AssertSimilar(expected, actual, tolerance, nothrow); + } + + [Test] + public void TestEquality() + { + EqualityTester.TestEquality( + new FbxQuaternion(0.0, 0.1, 0.2, 0.3), + new FbxQuaternion(0.3, 0.2, 0.1, 0.0), + new FbxQuaternion(0.0, 0.1, 0.2, 0.3)); + } + + [Test] + public void BasicTests () + { + FbxQuaternion u, v; + + // make sure the no-arg constructor doesn't crash + new FbxQuaternion(); + + // test dispose + using (new FbxQuaternion()) { } + DisposeTester.TestDispose(new FbxQuaternion()); + + // Test other constructors + v = new FbxQuaternion(0.1, 0.2, 0.3, 0.4); + u = new FbxQuaternion(v); + Assert.AreEqual(v, u); + u[0] = 0.5; + Assert.AreEqual(0.5, u[0]); + Assert.AreEqual(0.1, v[0]); // check that setting u doesn't set v + + // axis-angle constructor and setter + v = new FbxQuaternion(new FbxVector4(1,2,3), 90); + u = new FbxQuaternion(); + u.SetAxisAngle(new FbxVector4(1,2,3), 90); + Assert.AreEqual(u, v); + + // euler + v = new FbxQuaternion(); + v.ComposeSphericalXYZ(new FbxVector4(20, 30, 40)); + var euler = v.DecomposeSphericalXYZ(); + Assert.That(euler.X, Is.InRange(19.99, 20.01)); + Assert.That(euler.Y, Is.InRange(29.99, 30.01)); + Assert.That(euler.Z, Is.InRange(39.99, 40.01)); + Assert.AreEqual(0, euler.W); + + v = new FbxQuaternion(0.1, 0.2, 0.3); + Assert.AreEqual(0.1, v[0]); + Assert.AreEqual(0.2, v[1]); + Assert.AreEqual(0.3, v[2]); + Assert.AreEqual(1, v[3]); // w is assumed to be a homogenous coordinate + + v.Set(0.9, 0.8, 0.7, 0.6); + Assert.AreEqual(0.9, v[0]); + Assert.AreEqual(0.8, v[1]); + Assert.AreEqual(0.7, v[2]); + Assert.AreEqual(0.6, v[3]); + v.Set(0.9, 0.8, 0.7); + Assert.AreEqual(0.9, v[0]); + Assert.AreEqual(0.8, v[1]); + Assert.AreEqual(0.7, v[2]); + + v.SetAt(1, 2); + Assert.AreEqual(2, v.GetAt(1)); + + // Test operator[] + v = new FbxQuaternion(); + v[0] = 0.1; + Assert.AreEqual(0.1, v[0]); + v[1] = 0.2; + Assert.AreEqual(0.2, v[1]); + v[2] = 0.3; + Assert.AreEqual(0.3, v[2]); + v[3] = 0.4; + Assert.AreEqual(0.4, v[3]); + v.SetAt(3, 0.5); + Assert.AreEqual(0.5, v.GetAt(3)); + Assert.That(() => v[-1], Throws.Exception.TypeOf()); + Assert.That(() => v[ 4], Throws.Exception.TypeOf()); + Assert.That(() => v.GetAt(-1), Throws.Exception.TypeOf()); + Assert.That(() => v.GetAt( 4), Throws.Exception.TypeOf()); + Assert.That(() => v[-1] = 0.5, Throws.Exception.TypeOf()); + Assert.That(() => v[ 4] = 0.5, Throws.Exception.TypeOf()); + Assert.That(() => v.SetAt(-1, 0.5), Throws.Exception.TypeOf()); + Assert.That(() => v.SetAt( 4, 0.5), Throws.Exception.TypeOf()); + + // Test W/X/Y/Z + v.X = 0.1; + Assert.AreEqual(0.1, v.X); + v.Y = 0.2; + Assert.AreEqual(0.2, v.Y); + v.Z = 0.3; + Assert.AreEqual(0.3, v.Z); + v.W = 0.4; + Assert.AreEqual(0.4, v.W); + + // call the multiply/divide/add/sub operators, make sure they're vaguely sane + u = new FbxQuaternion(v); + v = v * v; + Assert.AreNotEqual(0, u.Compare(v, 1e-15)); // test compare can return false + v = v * 9; + v = 9 * v; + v = v + 5; + v = v - 5; // undo v + 5 + v = v + u; + v = v - u; // undo v + u + v = v / 81; // undo 9 * (v * 9) + v = v / u; // undo v*v + Assert.AreEqual(0, u.Compare(v)); // u and v are the same up to rounding + Assert.AreEqual(u * u, u.Product(u)); + + // unary negate and dot product + Assert.AreEqual(0, (-u).Compare(-v)); + Assert.AreEqual(-0.3, v.DotProduct(-v), 1e-6); + Assert.AreEqual(System.Math.Sqrt(0.3), v.Length(), 1e-6); + v.Normalize(); + Assert.AreEqual(1, v.DotProduct(v), 1e-6); + + // various others where we assume that FBX works, just test that they don't crash + v.Conjugate(); + v.Inverse(); + v.Slerp(u, 0.5); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxQuaternionTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxQuaternionTest.cs.meta new file mode 100644 index 0000000000..e097c94bc0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxQuaternionTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6bc2ded16816b42f3b1f4d3b66a5f579 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSceneTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSceneTest.cs new file mode 100644 index 0000000000..16bf7e578b --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSceneTest.cs @@ -0,0 +1,99 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxSceneTest : Base + { + protected override void TestSceneContainer() + { + // GetScene returns the parent scene. + using(var scene = FbxScene.Create(Manager, "thescene")) { + Assert.AreEqual(null, scene.GetScene()); + var subscene = CreateObject(scene, "subscene"); + Assert.AreEqual(scene, subscene.GetScene()); + var subsubscene = CreateObject(subscene, "subscene"); + Assert.AreEqual(subscene, subsubscene.GetScene()); + } + } + + [Test] + public void TestBasics() + { + using (var scene = FbxScene.Create(Manager, "scene")) { + // Just call every function. TODO: and test them at least minimally! + scene.GetGlobalSettings(); + scene.GetRootNode(); + + var docInfo = FbxDocumentInfo.Create(Manager, "info"); + scene.SetDocumentInfo(docInfo); + Assert.AreEqual(docInfo, scene.GetDocumentInfo()); + + docInfo = FbxDocumentInfo.Create(Manager, "info2"); + scene.SetSceneInfo(docInfo); + Assert.AreEqual(docInfo, scene.GetSceneInfo()); + + scene.Clear(); + + FbxCollectionTest.GenericTests (scene, Manager); + } + } + + [Test] + public override void TestDisposeDestroy () + { + // The scene destroys recursively even if you ask it not to + DoTestDisposeDestroy(canDestroyNonRecursive: false); + } + + [Test] + public void TestNodeCount () + { + using (FbxScene newScene = FbxScene.Create (Manager, "")) + { + Assert.GreaterOrEqual (newScene.GetNodeCount (), 0); + } + } + + [Test] + public void TestAddPose() + { + using (FbxScene newScene = FbxScene.Create (Manager, "")) { + FbxPose fbxPose = FbxPose.Create (Manager, "pose"); + bool result = newScene.AddPose (fbxPose); + Assert.IsTrue (result); + Assert.AreEqual (fbxPose, newScene.GetPose (0)); + + // test null + Assert.That (() => { newScene.AddPose(null); }, Throws.Exception.TypeOf()); + + // test invalid + fbxPose.Destroy(); + Assert.That (() => { newScene.AddPose(fbxPose); }, Throws.Exception.TypeOf()); + } + } + + [Test] + public void TestSetCurrentAnimStack() + { + using (FbxScene newScene = FbxScene.Create (Manager, "")) { + FbxAnimStack animStack = FbxAnimStack.Create (Manager, ""); + newScene.SetCurrentAnimationStack (animStack); + Assert.AreEqual (animStack, newScene.GetCurrentAnimationStack ()); + + // test null + Assert.That (() => { newScene.SetCurrentAnimationStack(null); }, Throws.Exception.TypeOf()); + + // test invalid + animStack.Destroy(); + Assert.That (() => { newScene.SetCurrentAnimationStack(animStack); }, Throws.Exception.TypeOf()); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSceneTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSceneTest.cs.meta new file mode 100644 index 0000000000..86b0d1d8f0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSceneTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1c2bbd2b899df434887ad618fa69da58 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkeletonTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkeletonTest.cs new file mode 100644 index 0000000000..136961b801 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkeletonTest.cs @@ -0,0 +1,43 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxSkeletonTest : FbxNodeAttributeBase + { + [Test] + public void TestBasics () + { + var skeleton = CreateObject ("skeleton"); + base.TestBasics(skeleton, FbxNodeAttribute.EType.eSkeleton); + + Assert.IsFalse (skeleton.GetSkeletonTypeIsSet()); + skeleton.SetSkeletonType(FbxSkeleton.EType.eLimb); + Assert.AreEqual (FbxSkeleton.EType.eLimb, skeleton.GetSkeletonType ()); + Assert.AreEqual (FbxSkeleton.EType.eRoot, skeleton.GetSkeletonTypeDefaultValue ()); + Assert.IsTrue (skeleton.IsSkeletonRoot()); + + Assert.AreEqual (FbxSkeleton.sDefaultLimbLength, skeleton.GetLimbLengthDefaultValue()); + Assert.AreEqual (FbxSkeleton.sDefaultSize, skeleton.GetLimbNodeSizeDefaultValue()); + + Assert.IsFalse (skeleton.GetLimbNodeColorIsSet()); + // Note: alpha does not seem to go through SetLimbNodeColor. + Assert.IsTrue (skeleton.SetLimbNodeColor(new FbxColor(0.5, 0.8, 0.2))); + Assert.AreEqual (new FbxColor(0.5, 0.8, 0.2), skeleton.GetLimbNodeColor()); + Assert.AreEqual (new FbxColor(0.8, 0.8, 0.8), skeleton.GetLimbNodeColorDefaultValue()); + skeleton.Reset(); + Assert.AreEqual (new FbxColor(0.8, 0.8, 0.8), skeleton.GetLimbNodeColor()); + + Assert.AreEqual (skeleton.Size, skeleton.FindProperty(FbxSkeleton.sSize)); + Assert.AreEqual (skeleton.LimbLength, skeleton.FindProperty(FbxSkeleton.sLimbLength)); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkeletonTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkeletonTest.cs.meta new file mode 100644 index 0000000000..b1bf7e16c5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkeletonTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7738427e955ff4723b23f11378ee62b7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkinTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkinTest.cs new file mode 100644 index 0000000000..74de682191 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkinTest.cs @@ -0,0 +1,42 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxSkinTest : FbxDeformerTestBase + { + [Test] + public void TestDeformerBasics() + { + // test FbxDeformer functions + TestBasics(CreateObject(), FbxDeformer.EDeformerType.eSkin); + } + + [Test] + public void TestAddCluster () + { + var fbxSkin = CreateObject ("skin"); + var fbxCluster = FbxCluster.Create (Manager, "cluster"); + + bool result = fbxSkin.AddCluster (fbxCluster); + Assert.IsTrue (result); + Assert.AreEqual (fbxSkin.GetCluster (0), fbxCluster); + + // test adding null cluster + Assert.That (() => { fbxSkin.AddCluster(null); }, Throws.Exception.TypeOf()); + + // add invalid cluster + var fbxCluster2 = FbxCluster.Create(Manager, "cluster2"); + fbxCluster2.Dispose(); + Assert.That (() => { fbxSkin.AddCluster(fbxCluster2); }, Throws.Exception.TypeOf()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkinTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkinTest.cs.meta new file mode 100644 index 0000000000..62124d9bf3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSkinTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 298821ad79dd94a328c470274758a4ba +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxStatusTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxStatusTest.cs new file mode 100644 index 0000000000..c5bab6e8e9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxStatusTest.cs @@ -0,0 +1,51 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxStatusTest + { + [Test] + public void TestBasics() + { + // test constructor + FbxStatus status = new FbxStatus (); + Assert.IsNotNull (status); + + // test dispose + status.Dispose (); + using (new FbxStatus ()) {} + + // test comparing code and status + status = new FbxStatus(FbxStatus.EStatusCode.eIndexOutOfRange); + Assert.AreEqual(FbxStatus.EStatusCode.eIndexOutOfRange, status.GetCode()); + Assert.IsTrue(FbxStatus.EStatusCode.eIndexOutOfRange == status); + Assert.IsTrue(status == FbxStatus.EStatusCode.eIndexOutOfRange); + Assert.IsTrue(FbxStatus.EStatusCode.eInvalidParameter != status); + Assert.IsTrue(status != FbxStatus.EStatusCode.eInvalidParameter); + + // test copy ctor and clear (it only modifies status2, not status) + var status2 = new FbxStatus(status); + status2.Clear(); + Assert.IsTrue(status.Error()); + Assert.IsFalse(status2.Error()); + + // test SetCode + status2.SetCode(FbxStatus.EStatusCode.eIndexOutOfRange); + Assert.AreEqual(status, status2); + status2.SetCode(FbxStatus.EStatusCode.eInvalidParameter, "wrong"); + Assert.AreEqual("wrong", status2.GetErrorString()); + + // test equality + EqualityTester.TestEquality(status, status2, new FbxStatus(status)); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxStatusTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxStatusTest.cs.meta new file mode 100644 index 0000000000..f064cca1fa --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxStatusTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7f590c53f59a94e0ca305efa8d5721bd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSubDeformerTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSubDeformerTest.cs new file mode 100644 index 0000000000..de690aa852 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSubDeformerTest.cs @@ -0,0 +1,17 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxSubDeformerTest : Base + { + + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSubDeformerTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSubDeformerTest.cs.meta new file mode 100644 index 0000000000..c062c71b05 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSubDeformerTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: edd16bc7c77914fcd8463d5972099ee9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSurfaceMaterialTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSurfaceMaterialTest.cs new file mode 100644 index 0000000000..1a81e51641 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSurfaceMaterialTest.cs @@ -0,0 +1,98 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxSurfaceMaterialTest : Base + { + public static void TestSurface(T material) where T:FbxSurfaceMaterial + { + material.ShadingModel.Get(); + material.MultiLayer.Get(); + } + + [Test] + public void TestBasics() + { + using (var surface = CreateObject()) { TestSurface(surface); } + + // Use all the getters + TestGetter(FbxSurfaceMaterial.sShadingModel); + TestGetter(FbxSurfaceMaterial.sMultiLayer); + TestGetter(FbxSurfaceMaterial.sMultiLayerDefault); + TestGetter(FbxSurfaceMaterial.sEmissive); + TestGetter(FbxSurfaceMaterial.sEmissiveFactor); + TestGetter(FbxSurfaceMaterial.sAmbient); + TestGetter(FbxSurfaceMaterial.sAmbientFactor); + TestGetter(FbxSurfaceMaterial.sDiffuse); + TestGetter(FbxSurfaceMaterial.sDiffuseFactor); + TestGetter(FbxSurfaceMaterial.sSpecular); + TestGetter(FbxSurfaceMaterial.sSpecularFactor); + TestGetter(FbxSurfaceMaterial.sShininess); + TestGetter(FbxSurfaceMaterial.sBump); + TestGetter(FbxSurfaceMaterial.sNormalMap); + TestGetter(FbxSurfaceMaterial.sBumpFactor); + TestGetter(FbxSurfaceMaterial.sTransparentColor); + TestGetter(FbxSurfaceMaterial.sTransparencyFactor); + TestGetter(FbxSurfaceMaterial.sReflection); + TestGetter(FbxSurfaceMaterial.sReflectionFactor); + TestGetter(FbxSurfaceMaterial.sDisplacementColor); + TestGetter(FbxSurfaceMaterial.sDisplacementFactor); + TestGetter(FbxSurfaceMaterial.sVectorDisplacementColor); + TestGetter(FbxSurfaceMaterial.sVectorDisplacementFactor); + TestGetter(FbxSurfaceMaterial.sShadingModelDefault); + } + } + + internal class FbxSurfaceLambertTest : Base + { + public static void TestLambert(T lambert) where T:FbxSurfaceLambert + { + FbxSurfaceMaterialTest.TestSurface(lambert); + TestGetter(lambert.Emissive); + TestGetter(lambert.EmissiveFactor); + TestGetter(lambert.Ambient); + TestGetter(lambert.AmbientFactor); + TestGetter(lambert.Diffuse); + TestGetter(lambert.DiffuseFactor); + TestGetter(lambert.NormalMap); + TestGetter(lambert.Bump); + TestGetter(lambert.BumpFactor); + TestGetter(lambert.TransparentColor); + TestGetter(lambert.TransparencyFactor); + TestGetter(lambert.DisplacementColor); + TestGetter(lambert.DisplacementFactor); + TestGetter(lambert.VectorDisplacementColor); + TestGetter(lambert.VectorDisplacementFactor); + } + + [Test] + public void TestBasics() + { + using (var lambert = CreateObject()) { TestLambert(lambert); } + } + } + + internal class FbxSurfacePhongTest : Base + { + [Test] + public void TestBasics() + { + using (var phong = CreateObject()) { + FbxSurfaceLambertTest.TestLambert(phong); + TestGetter(phong.Specular); + TestGetter(phong.SpecularFactor); + TestGetter(phong.Shininess); + TestGetter(phong.Reflection); + TestGetter(phong.ReflectionFactor); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSurfaceMaterialTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSurfaceMaterialTest.cs.meta new file mode 100644 index 0000000000..fc08757897 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSurfaceMaterialTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8dc2b71a11c6143f1bbcfcf6712e236f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSystemUnitTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSystemUnitTest.cs new file mode 100644 index 0000000000..98e51ea013 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSystemUnitTest.cs @@ -0,0 +1,82 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + /// + /// Run some tests that any vector type should be able to pass. + /// If you add tests here, you probably want to add them to the other + /// FbxDouble* test classes. + /// + internal class FbxSystemUnitTest : TestBase + { + [Test] + public void TestEquality() + { + EqualityTester.TestEquality(FbxSystemUnit.mm, FbxSystemUnit.Yard, new FbxSystemUnit(0.1)); + } + + /// + /// Test the basics. Subclasses should override and add some calls + /// e.g. to excercise all the constructors. + /// + [Test] + public void TestBasics() + { + // Call all the functions. Test that a few of them actually work + // (rather than merely not crashing). + using (FbxSystemUnit.mm) { } + using (FbxSystemUnit.cm) { } + using (FbxSystemUnit.dm) { } + using (FbxSystemUnit.m) { } + using (FbxSystemUnit.km) { } + using (FbxSystemUnit.Inch) { } + using (FbxSystemUnit.Foot) { } + using (FbxSystemUnit.Yard) { } + + var units = new FbxSystemUnit(0.1); + Assert.AreEqual(0.1, units.GetScaleFactor()); + Assert.AreEqual(1, units.GetMultiplier(), 1); + Assert.AreEqual("mm", units.GetScaleFactorAsString()); + Assert.AreEqual(FbxSystemUnit.mm, units); + Assert.AreNotEqual(FbxSystemUnit.km, units); + units.GetHashCode(); + units.ToString(); + units.Dispose(); + + units = new FbxSystemUnit(0.1378123891, 324823); + units.ToString(); + Assert.AreEqual("custom unit", units.GetScaleFactorAsString(pAbbreviated: false)); + Assert.AreNotEqual(units, FbxSystemUnit.mm); + + // test GetGetConversionFactor + Assert.AreEqual(FbxSystemUnit.cm.GetConversionFactorTo(FbxSystemUnit.Foot), + FbxSystemUnit.Foot.GetConversionFactorFrom(FbxSystemUnit.cm)); + + // test ConversionOptions.Dispose() + FbxSystemUnit.ConversionOptions options = new FbxSystemUnit.ConversionOptions(); + options.Dispose (); + + using (var manager = FbxManager.Create ()) { + FbxScene scene = FbxScene.Create (manager, "scene"); + + // test ConvertScene (make sure it doesn't crash) + FbxSystemUnit.cm.ConvertScene (scene); + FbxSystemUnit.m.ConvertScene(scene, new FbxSystemUnit.ConversionOptions()); + + // test null + Assert.That (() => { FbxSystemUnit.dm.ConvertScene(null); }, Throws.Exception.TypeOf()); + + // test destroyed + scene.Destroy(); + Assert.That (() => { FbxSystemUnit.dm.ConvertScene(scene); }, Throws.Exception.TypeOf()); + } + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSystemUnitTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSystemUnitTest.cs.meta new file mode 100644 index 0000000000..1d63e04568 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxSystemUnitTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e260992a2b6ae4d1da43fc07411fe60b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTextureTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTextureTest.cs new file mode 100644 index 0000000000..d72f7b5961 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTextureTest.cs @@ -0,0 +1,121 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxTextureTest : Base + { + public static void CommonTextureTests(T tex) where T : FbxTexture + { + // get all the properties + TestGetter(tex.Alpha); + TestGetter(tex.WrapModeU); + TestGetter(tex.WrapModeV); + TestGetter(tex.UVSwap); + TestGetter(tex.PremultiplyAlpha); + TestGetter(tex.Translation); + TestGetter(tex.Rotation); + TestGetter(tex.Scaling); + TestGetter(tex.RotationPivot); + TestGetter(tex.ScalingPivot); + TestGetter(tex.CurrentTextureBlendMode); + TestGetter(tex.UVSet); + + // call all the functions + tex.SetSwapUV(true); + Assert.IsTrue(tex.GetSwapUV()); + + tex.SetPremultiplyAlpha(true); + Assert.IsTrue(tex.GetPremultiplyAlpha()); + + tex.SetAlphaSource(FbxTexture.EAlphaSource.eRGBIntensity); + Assert.AreEqual(FbxTexture.EAlphaSource.eRGBIntensity, tex.GetAlphaSource()); + + tex.SetCropping(1, 2, 3, 4); + Assert.AreEqual(1, tex.GetCroppingLeft()); + Assert.AreEqual(2, tex.GetCroppingTop()); + Assert.AreEqual(3, tex.GetCroppingRight()); + Assert.AreEqual(4, tex.GetCroppingBottom()); + + tex.SetMappingType(FbxTexture.EMappingType.eSpherical); + Assert.AreEqual(FbxTexture.EMappingType.eSpherical, tex.GetMappingType()); + + tex.SetPlanarMappingNormal(FbxTexture.EPlanarMappingNormal.ePlanarNormalY); + Assert.AreEqual(FbxTexture.EPlanarMappingNormal.ePlanarNormalY, tex.GetPlanarMappingNormal()); + + tex.SetTextureUse(FbxTexture.ETextureUse.eShadowMap); + Assert.AreEqual(FbxTexture.ETextureUse.eShadowMap, tex.GetTextureUse()); + + tex.SetWrapMode(FbxTexture.EWrapMode.eRepeat, FbxTexture.EWrapMode.eClamp); + Assert.AreEqual(FbxTexture.EWrapMode.eRepeat, tex.GetWrapModeU()); + Assert.AreEqual(FbxTexture.EWrapMode.eClamp, tex.GetWrapModeV()); + + tex.SetBlendMode(FbxTexture.EBlendMode.eAdditive); + Assert.AreEqual(FbxTexture.EBlendMode.eAdditive, tex.GetBlendMode()); + + tex.SetDefaultAlpha(0.5); + Assert.AreEqual(0.5, tex.GetDefaultAlpha()); + + tex.SetTranslation(1, 2); + Assert.AreEqual(1, tex.GetTranslationU()); + Assert.AreEqual(2, tex.GetTranslationV()); + + tex.SetRotation(20, 30, 40); + Assert.AreEqual(20, tex.GetRotationU()); + Assert.AreEqual(30, tex.GetRotationV()); + Assert.AreEqual(40, tex.GetRotationW()); + + tex.SetRotation(20, 30); + Assert.AreEqual(20, tex.GetRotationU()); + Assert.AreEqual(30, tex.GetRotationV()); + Assert.AreEqual(0, tex.GetRotationW()); + + tex.SetScale(2, 3); + Assert.AreEqual(2, tex.GetScaleU()); + Assert.AreEqual(3, tex.GetScaleV()); + + tex.Reset(); + } + + [Test] + public void TestBasics() { + var tex = FbxTexture.Create(Manager, "tex"); + CommonTextureTests(tex); + TestGetter(FbxTexture.sVectorSpace); + TestGetter(FbxTexture.sVectorSpaceWorld); + TestGetter(FbxTexture.sVectorSpaceObject); + TestGetter(FbxTexture.sVectorSpaceTangent); + TestGetter(FbxTexture.sVectorEncoding); + TestGetter(FbxTexture.sVectorEncodingFP); + TestGetter(FbxTexture.sVectorEncodingSE); + } + } + + internal class FbxFileTextureTest : Base + { + [Test] + public void TestBasics() { + var tex = FbxFileTexture.Create(Manager, "tex"); + FbxTextureTest.CommonTextureTests(tex); + + TestGetter(tex.UseMaterial); + TestGetter(tex.UseMipMap); + + tex.SetFileName("/a/b/c/d.png"); + Assert.AreEqual("/a/b/c/d.png", tex.GetFileName()); + + tex.SetRelativeFileName("d.png"); + Assert.AreEqual("d.png", tex.GetRelativeFileName()); + + tex.SetMaterialUse(FbxFileTexture.EMaterialUse.eDefaultMaterial); + Assert.AreEqual(FbxFileTexture.EMaterialUse.eDefaultMaterial, tex.GetMaterialUse()); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTextureTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTextureTest.cs.meta new file mode 100644 index 0000000000..49fcff53d4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTextureTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9e953d08245fb4804918725df4c085c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTimeTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTimeTest.cs new file mode 100644 index 0000000000..333c1f5bd5 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTimeTest.cs @@ -0,0 +1,166 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxTimeTest : TestBase + { + [Test] + public void TestComparison () + { + var a = FbxTime.FromSecondDouble(5); + var b = FbxTime.FromSecondDouble(6); + var acopy = FbxTime.FromSecondDouble(5); + + // Test equality. + EqualityTester.TestEquality(a, b, acopy); + + // Test inequality. + Assert.IsTrue(a.CompareTo(b) < 0); + Assert.IsTrue(b.CompareTo(a) > 0); + Assert.IsTrue(a.CompareTo(acopy) == 0); + Assert.IsTrue(a.CompareTo((object)null) > 0); + Assert.That(() => a.CompareTo("a string"), Throws.Exception.TypeOf()); + Assert.IsTrue(a < b); + Assert.IsTrue(a <= b); + Assert.IsFalse(a >= b); + Assert.IsFalse(a > b); + Assert.IsTrue((FbxTime)null < b); + Assert.IsFalse(a < (FbxTime)null); + Assert.IsFalse((FbxTime)null < (FbxTime)null); + } + + [Test] + public void TestBasics () + { + // try the static functions + var mode = FbxTime.GetGlobalTimeMode(); + FbxTime.SetGlobalTimeMode(FbxTime.EMode.ePAL); + Assert.AreEqual(FbxTime.EMode.ePAL, FbxTime.GetGlobalTimeMode()); + FbxTime.SetGlobalTimeMode(mode); + + var protocol = FbxTime.GetGlobalTimeProtocol(); + FbxTime.SetGlobalTimeProtocol(FbxTime.EProtocol.eSMPTE); + Assert.AreEqual(FbxTime.EProtocol.eSMPTE, FbxTime.GetGlobalTimeProtocol()); + FbxTime.SetGlobalTimeProtocol(protocol); + + Assert.AreEqual(24, FbxTime.GetFrameRate(FbxTime.EMode.eFrames24)); + Assert.AreEqual(FbxTime.EMode.eFrames24, FbxTime.ConvertFrameRateToTimeMode(24)); + Assert.AreEqual(FbxTime.EMode.eFrames24, FbxTime.ConvertFrameRateToTimeMode(24.01, 0.1)); + Assert.AreEqual(FbxTime.EMode.eDefaultMode, FbxTime.ConvertFrameRateToTimeMode(24.1, 0.01)); + + TestGetter(FbxTime.GetOneFrameValue()); + TestGetter(FbxTime.GetOneFrameValue(FbxTime.EMode.ePAL)); + + Assert.IsFalse(FbxTime.IsDropFrame()); + Assert.IsTrue(FbxTime.IsDropFrame(FbxTime.EMode.eNTSCDropFrame)); + + // just make sure it doesn't crash + new FbxTime(); + + // test dispose + DisposeTester.TestDispose(new FbxTime()); + using (new FbxTime ()) {} + + // try the extension constructors + Assert.AreEqual(5, FbxTime.FromRaw(5).GetRaw()); + Assert.AreEqual(5, FbxTime.FromMilliSeconds(5000).GetSecondDouble()); + Assert.AreEqual(5, FbxTime.FromSecondDouble(5).GetSecondDouble()); + Assert.AreEqual(126210.02, FbxTime.FromTime(pSecond:7, pHour:1, pMinute:10, pResidual:2).GetFrameCountPrecise()); + Assert.AreEqual(5, FbxTime.FromFrame(5).GetFrameCountPrecise()); + Assert.AreEqual(5.125, FbxTime.FromFramePrecise(5.125).GetFrameCountPrecise()); + Assert.AreEqual(5, FbxTime.FromRaw(5).GetRaw()); + Assert.AreEqual(126211.2, FbxTime.FromFrame(105176, FbxTime.EMode.ePAL).GetFrameCountPrecise()); + Assert.AreEqual(126211.8, FbxTime.FromFramePrecise(105176.5, FbxTime.EMode.ePAL).GetFrameCountPrecise()); + Assert.AreEqual(126211.8, FbxTime.FromTimeString("105176.5", FbxTime.EMode.ePAL).GetFrameCountPrecise()); + + // try breaking a time down + var t = FbxTime.FromTime(pSecond:7, pHour:1, pMinute:10, pField:4, pResidual:2); + Assert.AreEqual(1, t.GetHourCount()); + Assert.AreEqual(70, t.GetMinuteCount()); + Assert.AreEqual(4207, t.GetSecondCount()); + Assert.AreEqual(4207067, t.GetMilliSeconds()); + Assert.AreEqual(126212, t.GetFrameCount()); + Assert.AreEqual(105176, t.GetFrameCount(FbxTime.EMode.ePAL)); + Assert.AreEqual(252424.04, t.GetFrameCountPrecise(FbxTime.EMode.eFrames60)); + Assert.AreEqual(252424, t.GetFieldCount()); + Assert.AreEqual(210353, t.GetFieldCount(FbxTime.EMode.ePAL)); + Assert.AreEqual(2, t.GetResidual()); + Assert.AreEqual(68, t.GetResidual(FbxTime.EMode.ePAL)); + Assert.AreEqual(':', t.GetFrameSeparator()); + Assert.AreEqual(':', t.GetFrameSeparator(FbxTime.EMode.ePAL)); + + int h, m, s, frame, field, residual; + t.GetTime(out h, out m, out s, out frame, out field, out residual); + Assert.AreEqual(1, h); + Assert.AreEqual(10, m); + Assert.AreEqual(2, frame); + Assert.AreEqual(0, field); + Assert.AreEqual(2, residual); + + t.GetTime(out h, out m, out s, out frame, out field, out residual, FbxTime.EMode.ePAL); + Assert.AreEqual(1, h); + Assert.AreEqual(10, m); + Assert.AreEqual(1, frame); + Assert.AreEqual(1, field); + Assert.AreEqual(68, residual); + + Assert.AreEqual("126212*", t.GetTimeString()); + Assert.AreEqual("126212*", t.GetTimeString(FbxTime.EElement.eSeconds)); + Assert.AreEqual("001:10:07", t.GetTimeString(pEnd: FbxTime.EElement.eSeconds, pTimeFormat: FbxTime.EProtocol.eSMPTE)); + + Assert.AreEqual("126212", t.GetFramedTime().GetTimeString()); + Assert.AreEqual("126212", t.GetFramedTime(false).GetTimeString()); + } + } + + internal class FbxTimeSpanTest : TestBase + { + [Test] + public void TestBasics () + { + // just make sure it doesn't crash + new FbxTimeSpan(); + new FbxTimeSpan (FbxTime.FromFrame(1), FbxTime.FromFrame(2)); + + // test dispose + DisposeTester.TestDispose(new FbxTimeSpan()); + using (new FbxTimeSpan (FbxTime.FromFrame(1), FbxTime.FromFrame(2))) { } + + Assert.That (() => { new FbxTimeSpan(null, null); }, Throws.Exception.TypeOf()); + + // test Set/Get + FbxTimeSpan timeSpan = new FbxTimeSpan(); + timeSpan.Set (FbxTime.FromFrame(2), FbxTime.FromFrame(3)); + Assert.AreEqual(FbxTime.FromFrame(2), timeSpan.GetStart()); + Assert.AreEqual(FbxTime.FromFrame(3), timeSpan.GetStop()); + Assert.That (() => { timeSpan.Set(null, null); }, Throws.Exception.TypeOf()); + timeSpan.SetStart(FbxTime.FromFrame(1)); + Assert.AreEqual(FbxTime.FromFrame(1), timeSpan.GetStart()); + timeSpan.SetStop(FbxTime.FromFrame(4)); + Assert.AreEqual(FbxTime.FromFrame(4), timeSpan.GetStop()); + + // test other functions + Assert.AreEqual(FbxTime.FromFrame(3), timeSpan.GetDuration()); + Assert.AreEqual(FbxTime.FromFrame(3), timeSpan.GetSignedDuration()); + Assert.AreEqual(1, timeSpan.GetDirection()); + Assert.IsTrue(timeSpan.IsInside(FbxTime.FromFrame(2))); + + var timeSpan2 = new FbxTimeSpan(FbxTime.FromFrame(2), FbxTime.FromFrame(10)); + Assert.AreEqual(new FbxTimeSpan(FbxTime.FromFrame(2), FbxTime.FromFrame(4)), timeSpan.Intersect(timeSpan2)); + + timeSpan.UnionAssignment(timeSpan2); + Assert.AreEqual(new FbxTimeSpan(FbxTime.FromFrame(1), FbxTime.FromFrame(10)), timeSpan); + + new FbxTimeSpan(FbxTime.FromFrame(0), FbxTime.FromFrame(1)).UnionAssignment(timeSpan2, 1); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTimeTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTimeTest.cs.meta new file mode 100644 index 0000000000..1f4050ff54 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxTimeTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ce52046844f734186b084af5a142bb5f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxUnitTests.asmdef b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxUnitTests.asmdef new file mode 100644 index 0000000000..9c68171821 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxUnitTests.asmdef @@ -0,0 +1,18 @@ +{ + "name": "FbxUnitTests", + "references": [ + "Autodesk.Fbx" + ], + "includePlatforms": [ + "Editor" + ], + "optionalUnityReferences": [ + "TestAssemblies" + ], + "defineConstraints": [ + "!UNITY_EDITOR_LINUX" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxUnitTests.asmdef.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxUnitTests.asmdef.meta new file mode 100644 index 0000000000..31064d7f7c --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxUnitTests.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: bb2bf5eba0c10664497fe0414392375c +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector2Test.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector2Test.cs new file mode 100644 index 0000000000..fe4d9b9642 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector2Test.cs @@ -0,0 +1,112 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxVector2Test + { + [Test] + public void TestEquality() + { + EqualityTester.TestEquality( + new FbxVector2(0, 1), + new FbxVector2(3, 2), + new FbxVector2(0, 1)); + } + + [Test] + public void BasicTests () + { + FbxVector2 v; + + // make sure the no-arg constructor doesn't crash + new FbxVector2(); + + // Test other constructors + v = new FbxVector2(5); + Assert.AreEqual(5, v.X); + Assert.AreEqual(5, v.Y); + + v = new FbxVector2(1, 2); + var u = new FbxVector2(v); + Assert.AreEqual(v, u); + u[0] = 5; + Assert.AreEqual(5, u[0]); + Assert.AreEqual(1, v[0]); // check that setting u doesn't set v + Assert.AreEqual(1, v.X); + Assert.AreEqual(2, v.Y); + + var d2 = new FbxDouble2(5, 6); + v = new FbxVector2(d2); + Assert.AreEqual(5, v.X); + Assert.AreEqual(6, v.Y); + + // Test operator[] + v = new FbxVector2(); + v[0] = 1; + Assert.AreEqual(1, v[0]); + v[1] = 2; + Assert.AreEqual(2, v[1]); + Assert.That(() => v[-1], Throws.Exception.TypeOf()); + Assert.That(() => v[ 2], Throws.Exception.TypeOf()); + Assert.That(() => v[-1] = 5, Throws.Exception.TypeOf()); + Assert.That(() => v[ 2] = 5, Throws.Exception.TypeOf()); + + // Test that we can scale by a scalar. + // This isn't covered below because this isn't legal in C++ + // (at least in FBX SDK 2017.1) + u = 5 * v; + Assert.AreEqual(5 * v.X, u.X); + Assert.AreEqual(5 * v.Y, u.Y); + } + + /////////////////////////////////////////////////////////////////////////// + // Test that our results match the C++. + /////////////////////////////////////////////////////////////////////////// + + static FbxVector2 Vector(double d) { return new FbxVector2(d,d); } + static FbxVector2 Vector(double[] d) { + return d.Length == 1 ? Vector(d[0]) : new FbxVector2(d[0], d[1]); + } + + static Dictionary> s_commands = new Dictionary> { + { "-a", (FbxVector2 a, FbxVector2 b) => { return -a; } }, + { "a + 2", (FbxVector2 a, FbxVector2 b) => { return a + 2; } }, + { "a - 2", (FbxVector2 a, FbxVector2 b) => { return a - 2; } }, + { "a * 2", (FbxVector2 a, FbxVector2 b) => { return a * 2; } }, + { "a / 2", (FbxVector2 a, FbxVector2 b) => { return a / 2; } }, + { "a + b", (FbxVector2 a, FbxVector2 b) => { return a + b; } }, + { "a - b", (FbxVector2 a, FbxVector2 b) => { return a - b; } }, + { "a * b", (FbxVector2 a, FbxVector2 b) => { return a * b; } }, + { "a / b", (FbxVector2 a, FbxVector2 b) => { return a / b; } }, + { "a.Length()", (FbxVector2 a, FbxVector2 b) => { return Vector(a.Length()); } }, + { "a.SquareLength()", (FbxVector2 a, FbxVector2 b) => { return Vector(a.SquareLength()); } }, + { "a.DotProduct(b)", (FbxVector2 a, FbxVector2 b) => { return Vector(a.DotProduct(b)); } }, + { "a.Distance(b)", (FbxVector2 a, FbxVector2 b) => { return Vector(a.Distance(b)); } }, + }; + + static Dictionary> s_custom_compare = new Dictionary> { + { "a.Length()", (FbxVector2 a, FbxVector2 b) => { Assert.AreEqual(a.X, b.X, 1e-8); return true; } }, + { "a.Distance(b)", (FbxVector2 a, FbxVector2 b) => { Assert.AreEqual(a.X, b.X, 1e-8); return true; } }, + }; + + [Ignore("Fails if imported from a package because of Vector.cpp dependency")] + [Test] + public void MatchingTests () + { + CppMatchingHelper.MatchingTest( + "vector_test.txt", + "FbxVector2", + Vector, + s_commands, + s_custom_compare); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector2Test.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector2Test.cs.meta new file mode 100644 index 0000000000..0d2777a946 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector2Test.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 364ad1a2bc8ec445babcdf47276bce9b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector4Test.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector4Test.cs new file mode 100644 index 0000000000..6e0f95dd22 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector4Test.cs @@ -0,0 +1,214 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal class FbxVector4Test + { + [Test] + public void TestEquality() + { + EqualityTester.TestEquality( + new FbxVector4(0, 1, 2, 3), + new FbxVector4(3, 2, 1, 0), + new FbxVector4(0, 1, 2, 3)); + } + + /// + /// Check that two vectors are similar, interpreting them as 4-tuples + /// of doubles. + /// + /// Pass 'nothrow' as true if you want a bool yes/no. By default we + /// throw an NUnit exception if the vectors don't match. + /// + public static bool AssertSimilarXYZW(FbxVector4 expected, FbxVector4 actual, + double tolerance = 1e-10, bool nothrow = false) + { + if (System.Math.Abs(expected.X - actual.X) <= tolerance && + System.Math.Abs(expected.Y - actual.Y) <= tolerance && + System.Math.Abs(expected.Z - actual.Z) <= tolerance && + System.Math.Abs(expected.Z - actual.Z) <= tolerance) { + return true; + } + + if (!nothrow) { + Assert.AreEqual(expected, actual); + } + return false; + } + + /// + /// Check that two vectors are similar, interpreting them as XYZ + /// vectors (ignoring W). + /// + /// Pass 'nothrow' as true if you want a bool yes/no. By default we + /// throw an NUnit exception if the vectors don't match. + /// + public static bool AssertSimilarXYZ(FbxVector4 expected, FbxVector4 actual, + double tolerance = 1e-10, bool nothrow = false) + { + if (System.Math.Abs(expected.X - actual.X) <= tolerance && + System.Math.Abs(expected.Y - actual.Y) <= tolerance && + System.Math.Abs(expected.Z - actual.Z) <= tolerance) { + return true; + } + + if (!nothrow) { + Assert.AreEqual(expected, actual); + } + return false; + } + + /// + /// Check that two vectors are similar, interpreting them as XYZ euler angles, + /// ignoring W. + /// + /// Pass 'nothrow' as true if you want a bool yes/no. By default we + /// throw an NUnit exception if the vectors don't match. + /// + public static bool AssertSimilarEuler(FbxVector4 expected, FbxVector4 actual, + double tolerance = 1e-10, bool nothrow = false) + { + if (expected == actual) { + return true; + } + + var q1 = new FbxQuaternion(); q1.ComposeSphericalXYZ(expected); + var q2 = new FbxQuaternion(); q2.ComposeSphericalXYZ(actual); + + // Check if the quaternions match. + if (FbxQuaternionTest.AssertSimilar(q1, q2, System.Math.Sqrt(tolerance), nothrow: true)) { + return true; + } + + if (!nothrow) { + Assert.AreEqual(expected, actual, "Quaternions don't match: " + q1 + " versus " + q2); + } + return false; + } + + [Test] + public void BasicTests () + { + FbxVector4 v; + + // make sure the no-arg constructor doesn't crash + new FbxVector4(); + + // Test other constructors + v = new FbxVector4(1, 2, 3, 4); + var u = new FbxVector4(v); + Assert.AreEqual(v, u); + u[0] = 5; + Assert.AreEqual(5, u[0]); + Assert.AreEqual(1, v[0]); // check that setting u doesn't set v + + v = new FbxVector4(1, 2, 3); + Assert.AreEqual(1, v[3]); // w is assumed to be a homogenous coordinate + v = new FbxVector4(new FbxDouble3(1, 2, 3)); + Assert.AreEqual(1, v[3]); // w is assumed to be a homogenous coordinate + Assert.AreEqual(1, v[0]); + Assert.AreEqual(2, v[1]); + Assert.AreEqual(3, v[2]); + + // Test operator[] + v = new FbxVector4(); + v[0] = 1; + Assert.AreEqual(1, v[0]); + v[1] = 2; + Assert.AreEqual(2, v[1]); + v[2] = 3; + Assert.AreEqual(3, v[2]); + v[3] = 4; + Assert.AreEqual(4, v[3]); + Assert.That(() => v[-1], Throws.Exception.TypeOf()); + Assert.That(() => v[ 4], Throws.Exception.TypeOf()); + Assert.That(() => v[-1] = 5, Throws.Exception.TypeOf()); + Assert.That(() => v[ 4] = 5, Throws.Exception.TypeOf()); + + // Test 4-argument constructor and members X/Y/Z/W + v = new FbxVector4(1, 2, 3, 4); + Assert.AreEqual(1, v.X); + Assert.AreEqual(2, v.Y); + Assert.AreEqual(3, v.Z); + Assert.AreEqual(4, v.W); + v.X = 3; + v.Y = 4; + v.Z = 5; + v.W = 6; + Assert.AreEqual(3, v.X); + Assert.AreEqual(4, v.Y); + Assert.AreEqual(5, v.Z); + Assert.AreEqual(6, v.W); + + // Test that we can scale by a scalar. + // This isn't covered below because this isn't legal in C++ + // (at least in FBX SDK 2017.1) + u = 5 * v; + Assert.AreEqual(5 * v.X, u.X); + Assert.AreEqual(5 * v.Y, u.Y); + Assert.AreEqual(5 * v.Z, u.Z); + Assert.AreEqual(5 * v.W, u.W); + } + + /////////////////////////////////////////////////////////////////////////// + // Test that our results match the C++. + /////////////////////////////////////////////////////////////////////////// + + static FbxVector4 Vector(double d) { return new FbxVector4(d,d,d,d); } + + static FbxVector4 Vector(double [] d) { + if (d.Length == 1) { return Vector(d[0]); } + else { + Assert.AreEqual(4, d.Length); + return new FbxVector4(d[0],d[1],d[2],d[3]); + } + } + + static Dictionary> s_commands = new Dictionary> { + { "-a", (FbxVector4 a, FbxVector4 b) => { return -a; } }, + { "a + 2", (FbxVector4 a, FbxVector4 b) => { return a + 2; } }, + { "a - 2", (FbxVector4 a, FbxVector4 b) => { return a - 2; } }, + { "a * 2", (FbxVector4 a, FbxVector4 b) => { return a * 2; } }, + { "a / 2", (FbxVector4 a, FbxVector4 b) => { return a / 2; } }, + { "a + b", (FbxVector4 a, FbxVector4 b) => { return a + b; } }, + { "a - b", (FbxVector4 a, FbxVector4 b) => { return a - b; } }, + { "a * b", (FbxVector4 a, FbxVector4 b) => { return a * b; } }, + { "a / b", (FbxVector4 a, FbxVector4 b) => { return a / b; } }, + { "a.Length()", (FbxVector4 a, FbxVector4 b) => { return Vector(a.Length()); } }, + { "a.SquareLength()", (FbxVector4 a, FbxVector4 b) => { return Vector(a.SquareLength()); } }, + { "a.DotProduct(b)", (FbxVector4 a, FbxVector4 b) => { return Vector(a.DotProduct(b)); } }, + { "a.CrossProduct(b)", (FbxVector4 a, FbxVector4 b) => { return a.CrossProduct(b); } }, + { "a.Distance(b)", (FbxVector4 a, FbxVector4 b) => { return Vector(a.Distance(b)); } }, + }; + + static bool ApproximatelyEqualX(FbxVector4 expected, FbxVector4 actual) { + Assert.AreEqual(expected.X, actual.X, 1e-8); + return System.Math.Abs(expected.X - actual.X) < 1e-8; + } + + static Dictionary> s_custom_compare = new Dictionary> { + { "a.Length()", ApproximatelyEqualX }, + { "a.Distance(b)", ApproximatelyEqualX } + }; + + [Ignore("Fails if imported from a package because of Vector.cpp dependency")] + [Test] + public void MatchingTests () + { + CppMatchingHelper.MatchingTest( + "vector_test.txt", + "FbxVector4", + Vector, + s_commands, + s_custom_compare); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector4Test.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector4Test.cs.meta new file mode 100644 index 0000000000..ad21b0249f --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/FbxVector4Test.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6fc5828fcea4b4d8ba9d9f59e1cb6c64 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/GlobalsTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/GlobalsTest.cs new file mode 100644 index 0000000000..7039d27c10 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/GlobalsTest.cs @@ -0,0 +1,63 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; +using System.Collections.Generic; +using System.Reflection; + +namespace Autodesk.Fbx.UnitTests +{ + internal class GlobalsTest + { + const string kPINVOKE = "NativeMethods"; + static System.Type s_PINVOKEtype; + static ConstructorInfo s_PINVOKEctor; + static List s_UpcastFunctions = new List(); + + static GlobalsTest() + { + /* We test the PINVOKE class by reflection since it's private to + * its assembly. */ + var alltypes = typeof(Autodesk.Fbx.Globals).Assembly.GetTypes(); + foreach(var t in alltypes) { + if (t.Namespace == "Autodesk.Fbx" && t.Name == kPINVOKE) { + s_PINVOKEtype = t; + break; + } + } + Assert.IsNotNull(s_PINVOKEtype); + + s_PINVOKEctor = s_PINVOKEtype.GetConstructor(new System.Type[] {}); + + foreach(var m in s_PINVOKEtype.GetMethods()) { + if (m.Name.EndsWith("SWIGUpcast")) { + s_UpcastFunctions.Add(m); + } + } + } + + bool ProgressCallback(float a, string b) { return true; } + + [Test] + public void BasicTests () + { + /* Try to create the Globals, which isn't + * static, so the coverage tests want us to create them. */ + new Globals(); + + /* Create the NativeMethods, which isn't static. + * But it is protected, so we can't create it normally, + * which is why we use reflection. */ + s_PINVOKEctor.Invoke(null); + + /* Don't actually invoke the SWIGUpcast functions. They're a + * feature to handle multiple inheritance. But FBX SDK doesn't use + * multiple inheritance anyway. */ + } + + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/GlobalsTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/GlobalsTest.cs.meta new file mode 100644 index 0000000000..14caee9bf0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/GlobalsTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8529bbe9bb9e94cfa85b0fa3bea6782a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Invoker.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Invoker.cs new file mode 100644 index 0000000000..f2d9ce5b63 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Invoker.cs @@ -0,0 +1,119 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +namespace Autodesk.Fbx.UnitTests +{ + internal static class Invoker + { + /** + * Invoke a constructor taking zero arguments. + */ + public static U InvokeConstructor(System.Reflection.ConstructorInfo constructor) { + try { + return (U)(constructor.Invoke(new object[]{})); + } catch(System.Reflection.TargetInvocationException xcp) { + throw xcp.GetBaseException(); + } + } + + /** + * Invoke a constructor taking a single arguments. + */ + public static U InvokeConstructor(System.Reflection.ConstructorInfo constructor, object arg) { + try { + return (U)(constructor.Invoke(new object[]{ arg })); + } catch(System.Reflection.TargetInvocationException xcp) { + throw xcp.GetBaseException(); + } + } + + /** + * Invoke a zero-argument instance method. + */ + public static U Invoke(System.Reflection.MethodInfo method, object instance) { + try { + return (U)(method.Invoke(instance, null)); + } catch(System.Reflection.TargetInvocationException xcp) { + throw xcp.GetBaseException(); + } + } + + /** + * Invoke a single-argument instance method. + */ + public static U Invoke(System.Reflection.MethodInfo method, object instance, object arg) { + try { + return (U)(method.Invoke(instance, new object [] { arg })); + } catch(System.Reflection.TargetInvocationException xcp) { + throw xcp.GetBaseException(); + } + } + + /** + * Invoke a two-argument instance method. + */ + public static U Invoke(System.Reflection.MethodInfo method, object instance, object arg1, object arg2) { + try { + return (U)(method.Invoke(instance, new object [] { arg1, arg2 })); + } catch(System.Reflection.TargetInvocationException xcp) { + throw xcp.GetBaseException(); + } + } + + /** + * Invoke a single-argument instance method with no return value. + */ + public static void Invoke(System.Reflection.MethodInfo method, object instance, object arg) + { + try + { + method.Invoke(instance, new object[] { arg }); + } + catch (System.Reflection.TargetInvocationException xcp) + { + throw xcp.GetBaseException(); + } + } + + /** + * Invoke a two-argument instance method with no return value. + */ + public static void Invoke(System.Reflection.MethodInfo method, object instance, object arg1, object arg2) + { + try + { + method.Invoke(instance, new object[] { arg1, arg2 }); + } + catch (System.Reflection.TargetInvocationException xcp) + { + throw xcp.GetBaseException(); + } + } + + /** + * Invoke a single-argument static method. + */ + public static U InvokeStatic(System.Reflection.MethodInfo method, object arg) { + try { + return (U)(method.Invoke(null, new object[] { arg } )); + } catch(System.Reflection.TargetInvocationException xcp) { + throw xcp.GetBaseException(); + } + } + + /** + * Invoke a two-argument static method. + */ + public static U InvokeStatic(System.Reflection.MethodInfo method, object arg1, object arg2) { + try { + return (U)(method.Invoke(null, new object [] { arg1, arg2 })); + } catch(System.Reflection.TargetInvocationException xcp) { + throw xcp.GetBaseException(); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Invoker.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Invoker.cs.meta new file mode 100644 index 0000000000..3afb846dc9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/Invoker.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ce49dac1559944062a81f2107f956ea1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/TestBase.cs b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/TestBase.cs new file mode 100644 index 0000000000..62ac36d27d --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/TestBase.cs @@ -0,0 +1,29 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using Autodesk.Fbx; + +using System.Collections.Generic; + +namespace Autodesk.Fbx.UnitTests +{ + internal abstract class TestBase + { + /* + * Helper to test a property getter without a compiler warning. + * Use this like: + * TestGetter(tex.Alpha); + * + * That will call get_Alpha under the hood, verifying that the getter + * actually works. You can't just write + * tex.Alpha; + * because then you get a warning or error that your statement is + * invalid. + */ + public static void TestGetter(U item) { /* we tested the getter by passing the argument! */ } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/TestBase.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/TestBase.cs.meta new file mode 100644 index 0000000000..25c72277c4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UnitTests/TestBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e6aa22548e5e84834b80173e77cabefc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests.meta new file mode 100644 index 0000000000..27a879033e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 2923ea96f3e0d494cb7fee81833fe396 +folderAsset: yes +timeCreated: 1490808966 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimatedConstraintExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimatedConstraintExportTest.cs new file mode 100644 index 0000000000..714e97ee5e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimatedConstraintExportTest.cs @@ -0,0 +1,138 @@ +using NUnit.Framework; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class AnimatedConstraintExportTest : AnimationClipsExportTest + { + protected override string[] PropertyNames + { + get + { + return new string[] { + "Weight" + }; + } + } + + protected override string[] Components + { + get + { + return new string[] { null }; + } + } + + protected const string ConstraintName = "posConstraint"; + + [SetUp] + public override void Init() + { + fileNamePrefix = "_safe_to_delete__animated_constraint_export_test"; + base.Init(); + } + + protected override FbxScene CreateScene(FbxManager manager) + { + // Create a scene with a single node that has an animation clip + // attached to it + FbxScene scene = FbxScene.Create(manager, "myScene"); + + FbxNode sourceNode = FbxNode.Create(scene, "source"); + FbxNode constrainedNode = FbxNode.Create(scene, "constrained"); + + scene.GetRootNode().AddChild(sourceNode); + scene.GetRootNode().AddChild(constrainedNode); + + FbxConstraint posConstraint = CreatePositionConstraint(scene, sourceNode, constrainedNode); + + Assert.That(posConstraint, Is.Not.Null); + + bool result = posConstraint.ConnectDstObject(scene); + Assert.That(result, Is.True); + + // animate weight + active + // setup anim stack + FbxAnimStack fbxAnimStack = CreateAnimStack(scene); + + // add an animation layer + FbxAnimLayer fbxAnimLayer = FbxAnimLayer.Create(scene, "animBaseLayer"); + fbxAnimStack.AddMember(fbxAnimLayer); + + // set up the translation + CreateAnimCurves( + posConstraint, fbxAnimLayer, PropertyComponentList, (index) => { return index * 2.0; }, (index) => { return index * 3 - 2; } + ); + + // TODO: avoid needing to do this by creating typemaps for + // FbxObject::GetSrcObjectCount and FbxCast. + // Not trivial to do as both fbxobject.i and fbxemitter.i + // have to be moved up before the ignore all statement + // to allow use of templates. + scene.SetCurrentAnimationStack(fbxAnimStack); + return scene; + } + + protected FbxConstraint CreatePositionConstraint(FbxScene scene, FbxNode sourceNode, FbxNode constrainedNode) + { + FbxConstraintPosition constraint = FbxConstraintPosition.Create(scene, ConstraintName); + + constraint.SetConstrainedObject(constrainedNode); + constraint.AddConstraintSource(sourceNode); + + constraint.AffectX.Set(true); + constraint.AffectY.Set(true); + constraint.AffectZ.Set(true); + + constraint.Translation.Set(new FbxDouble3(1, 2, 3)); + + return constraint; + } + + protected override void CheckScene(FbxScene scene) + { + FbxScene origScene = CreateScene(FbxManager); + Assert.That(origScene.GetRootNode().GetChildCount(), Is.EqualTo(scene.GetRootNode().GetChildCount())); + + // check nodes match + FbxNode origSourceNode = origScene.GetRootNode().GetChild(0); + FbxNode origConstrainedNode = origScene.GetRootNode().GetChild(1); + + FbxNode importSourceNode = scene.GetRootNode().GetChild(0); + FbxNode importConstrainedNode = scene.GetRootNode().GetChild(1); + + Assert.That(origSourceNode, Is.Not.Null); + Assert.That(importSourceNode, Is.Not.Null); + Assert.That(origConstrainedNode, Is.Not.Null); + Assert.That(importConstrainedNode, Is.Not.Null); + Assert.That(importSourceNode.GetName(), Is.EqualTo(origSourceNode.GetName())); + Assert.That(importConstrainedNode.GetName(), Is.EqualTo(origConstrainedNode.GetName())); + + // check constraints match + // TODO: find a way to cast to FbxConstraint + Assert.That(scene.GetSrcObjectCount(), Is.EqualTo(origScene.GetSrcObjectCount())); + FbxObject origPosConstraint = origScene.FindSrcObject(ConstraintName); + FbxObject importPosConstraint = scene.FindSrcObject(ConstraintName); + + Assert.That(origPosConstraint, Is.Not.Null); + Assert.That(importPosConstraint, Is.Not.Null); + Assert.That(importPosConstraint.GetName(), Is.EqualTo(origPosConstraint.GetName())); + + // check animation matches + FbxAnimStack origStack = origScene.GetCurrentAnimationStack(); + FbxAnimStack importStack = scene.GetCurrentAnimationStack(); + + CheckAnimStack(origStack, importStack); + + FbxAnimLayer origLayer = origStack.GetAnimLayerMember(); + FbxAnimLayer importLayer = importStack.GetAnimLayerMember(); + + Assert.That(origLayer, Is.Not.Null); + Assert.That(importLayer, Is.Not.Null); + + Assert.That(scene.GetGlobalSettings().GetTimeMode(), Is.EqualTo(FbxTime.EMode.eFrames30)); + + CheckAnimCurve(origPosConstraint, importPosConstraint, origLayer, importLayer, PropertyComponentList); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimatedConstraintExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimatedConstraintExportTest.cs.meta new file mode 100644 index 0000000000..d29532e30f --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimatedConstraintExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fbdf78b1ce1fc46de8c90175db4a3fea +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimationClipsExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimationClipsExportTest.cs new file mode 100644 index 0000000000..be9c775551 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimationClipsExportTest.cs @@ -0,0 +1,236 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections.Generic; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class AnimationClipsExportTest : RoundTripTestBase + { + protected int m_keyCount = 5; + + protected virtual string[] PropertyNames + { + get + { + return new string[] { + "Lcl Translation", + "Lcl Rotation", + "Lcl Scaling" + }; + } + } + + protected virtual string[] Components + { + get + { + return new string[] { + Globals.FBXSDK_CURVENODE_COMPONENT_X, + Globals.FBXSDK_CURVENODE_COMPONENT_Y, + Globals.FBXSDK_CURVENODE_COMPONENT_Z + }; + } + } + + protected List m_propComponentList; + protected virtual List PropertyComponentList + { + get + { + if (m_propComponentList == null) + { + m_propComponentList = new List(); + foreach (var prop in PropertyNames) + { + m_propComponentList.Add(new PropertyComponentPair(prop, Components)); + } + } + return m_propComponentList; + } + } + + protected struct PropertyComponentPair + { + public string propertyName; + public string[] componentList; + + public PropertyComponentPair(string propName, string[] components) + { + propertyName = propName; + componentList = components; + } + } + + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__animation_clips_export_test"; + base.Init (); + } + + protected override FbxScene CreateScene (FbxManager manager) + { + // Create a scene with a single node that has an animation clip + // attached to it + FbxScene scene = FbxScene.Create (manager, "myScene"); + + FbxNode animNode = FbxNode.Create (scene, "animNode"); + + // setup anim stack + FbxAnimStack fbxAnimStack = CreateAnimStack(scene); + + // add an animation layer + FbxAnimLayer fbxAnimLayer = FbxAnimLayer.Create (scene, "animBaseLayer"); + fbxAnimStack.AddMember (fbxAnimLayer); + + // set up the translation + CreateAnimCurves ( + animNode, fbxAnimLayer, PropertyComponentList, (index) => { return index*2.0; }, (index) => { return index*3.0f - 1; } + ); + + // TODO: avoid needing to this by creating typemaps for + // FbxObject::GetSrcObjectCount and FbxCast. + // Not trivial to do as both fbxobject.i and fbxemitter.i + // have to be moved up before the ignore all statement + // to allow use of templates. + scene.SetCurrentAnimationStack (fbxAnimStack); + scene.GetRootNode().AddChild (animNode); + return scene; + } + + protected FbxAnimStack CreateAnimStack(FbxScene scene) + { + FbxAnimStack fbxAnimStack = FbxAnimStack.Create(scene, "animClip"); + fbxAnimStack.Description.Set("Animation Take"); + + FbxTime.EMode timeMode = FbxTime.EMode.eFrames30; + scene.GetGlobalSettings().SetTimeMode(timeMode); + + // set time correctly + var fbxStartTime = FbxTime.FromSecondDouble(0); + var fbxStopTime = FbxTime.FromSecondDouble(25); + + fbxAnimStack.SetLocalTimeSpan(new FbxTimeSpan(fbxStartTime, fbxStopTime)); + return fbxAnimStack; + } + + protected void CreateAnimCurves( + FbxObject animObject, FbxAnimLayer animLayer, + List properties, + System.Func calcTime, // lambda function for calculating time based on index + System.Func calcValue, // lambda function for calculating value based on index + FbxNodeAttribute animNodeAttr=null) + { + foreach(var pair in properties){ + FbxProperty fbxProperty = animObject.FindProperty (pair.propertyName, false); + if (animNodeAttr != null && (fbxProperty == null || !fbxProperty.IsValid ())) { + // backup method for finding the property if we can't find it on the node itself + fbxProperty = animNodeAttr.FindProperty (pair.propertyName, false); + } + + Assert.IsNotNull (fbxProperty); + Assert.IsTrue (fbxProperty.IsValid ()); + Assert.That(fbxProperty.GetFlag(FbxPropertyFlags.EFlags.eAnimatable), Is.True); + + foreach (var component in pair.componentList) { + // Create the AnimCurve on the channel + FbxAnimCurve fbxAnimCurve = fbxProperty.GetCurve (animLayer, component, true); + + Assert.IsNotNull (fbxAnimCurve); + + fbxAnimCurve.KeyModifyBegin (); + for (int keyIndex = 0; keyIndex < m_keyCount; ++keyIndex) { + FbxTime fbxTime = FbxTime.FromSecondDouble(calcTime(keyIndex)); + fbxAnimCurve.KeyAdd (fbxTime); + fbxAnimCurve.KeySet (keyIndex, fbxTime, calcValue(keyIndex)); + } + fbxAnimCurve.KeyModifyEnd (); + } + } + } + + protected override void CheckScene (FbxScene scene) + { + FbxScene origScene = CreateScene (FbxManager); + + FbxNode origAnimNode = origScene.GetRootNode ().GetChild (0); + FbxNode importAnimNode = scene.GetRootNode ().GetChild (0); + + Assert.AreEqual (origScene.GetRootNode ().GetChildCount (), scene.GetRootNode ().GetChildCount ()); + Assert.IsNotNull (origAnimNode); + Assert.IsNotNull (importAnimNode); + Assert.AreEqual (origAnimNode.GetName (), importAnimNode.GetName ()); + + FbxAnimStack origStack = origScene.GetCurrentAnimationStack (); + FbxAnimStack importStack = scene.GetCurrentAnimationStack (); + + CheckAnimStack(origStack, importStack); + + FbxAnimLayer origLayer = origStack.GetAnimLayerMember (); + FbxAnimLayer importLayer = importStack.GetAnimLayerMember (); + + Assert.IsNotNull (origLayer); + Assert.IsNotNull (importLayer); + + Assert.AreEqual(FbxTime.EMode.eFrames30, scene.GetGlobalSettings().GetTimeMode()); + + CheckAnimCurve (origAnimNode, importAnimNode, origLayer, importLayer, PropertyComponentList); + } + + protected void CheckAnimStack(FbxAnimStack origStack, FbxAnimStack importStack) + { + Assert.IsNotNull(origStack); + Assert.IsNotNull(importStack); + Assert.AreEqual(origStack.GetName(), importStack.GetName()); + Assert.AreEqual(origStack.Description.Get(), importStack.Description.Get()); + Assert.AreEqual(origStack.GetMemberCount(), importStack.GetMemberCount()); + + Assert.AreEqual(origStack.GetLocalTimeSpan(), importStack.GetLocalTimeSpan()); + } + + protected void CheckAnimCurve( + FbxObject origAnimObject, FbxObject importAnimObject, + FbxAnimLayer origLayer, FbxAnimLayer importLayer, + List propCompPairs, + FbxNodeAttribute origNodeAttr=null, FbxNodeAttribute importNodeAttr=null) + { + foreach (var pair in propCompPairs) { + FbxProperty origProperty = origAnimObject.FindProperty (pair.propertyName, false); + if (origNodeAttr != null && (origProperty == null || !origProperty.IsValid ())) { + origProperty = origNodeAttr.FindProperty (pair.propertyName, false); + } + FbxProperty importProperty = importAnimObject.FindProperty (pair.propertyName, false); + if (importNodeAttr != null && (importProperty == null || !importProperty.IsValid ())) { + importProperty = importNodeAttr.FindProperty (pair.propertyName, false); + } + + Assert.IsNotNull (origProperty); + Assert.IsNotNull (importProperty); + Assert.IsTrue (origProperty.IsValid ()); + Assert.IsTrue (importProperty.IsValid ()); + + foreach (var component in pair.componentList) { + + FbxAnimCurve origAnimCurve = origProperty.GetCurve (origLayer, component, false); + FbxAnimCurve importAnimCurve = importProperty.GetCurve (importLayer, component, false); + + Assert.IsNotNull (origAnimCurve); + Assert.IsNotNull (importAnimCurve); + + Assert.AreEqual (origAnimCurve.KeyGetCount (), importAnimCurve.KeyGetCount ()); + + for (int i = 0; i < origAnimCurve.KeyGetCount (); i++) { + Assert.AreEqual (origAnimCurve.KeyGetTime (i), importAnimCurve.KeyGetTime (i)); + Assert.AreEqual (origAnimCurve.KeyGetValue (i), importAnimCurve.KeyGetValue (i)); + } + } + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimationClipsExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimationClipsExportTest.cs.meta new file mode 100644 index 0000000000..d0819e9f77 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/AnimationClipsExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 37586fa7d768a460a990c52a46b1a3b4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CameraExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CameraExportTest.cs new file mode 100644 index 0000000000..fe5bded662 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CameraExportTest.cs @@ -0,0 +1,168 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections.Generic; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class CameraExportTest : AnimationClipsExportTest + { + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__camera_export_test"; + base.Init (); + } + + protected override FbxScene CreateScene (FbxManager manager) + { + FbxScene scene = base.CreateScene(manager); + FbxNode cameraNode = scene.GetRootNode ().GetChild (0); + FbxCamera camera = FbxCamera.Create (scene, "camera"); + + camera.ProjectionType.Set (FbxCamera.EProjectionType.ePerspective); + camera.SetAspect (FbxCamera.EAspectRatioMode.eFixedRatio, 300, 400); + camera.FilmAspectRatio.Set (240); + camera.SetApertureWidth (4); + camera.SetApertureHeight (2); + camera.SetApertureMode (FbxCamera.EApertureMode.eFocalLength); + camera.FocalLength.Set (32); + camera.SetNearPlane (1); + camera.SetFarPlane (100); + + // create custom property (background color) + var bgColorProperty = FbxProperty.Create (cameraNode, Globals.FbxColor4DT, "backgroundColor"); + Assert.IsTrue (bgColorProperty.IsValid ()); + + bgColorProperty.Set (new FbxColor(0.5, 0.4, 0.1, 1)); + + // Must be marked user-defined or it won't be shown in most DCCs + bgColorProperty.ModifyFlag (FbxPropertyFlags.EFlags.eUserDefined, true); + bgColorProperty.ModifyFlag (FbxPropertyFlags.EFlags.eAnimatable, true); + + Assert.IsTrue (bgColorProperty.GetFlag (FbxPropertyFlags.EFlags.eUserDefined)); + Assert.IsTrue (bgColorProperty.GetFlag (FbxPropertyFlags.EFlags.eAnimatable)); + + // create custom property (clear flags) + var clearFlagsProperty = FbxProperty.Create (cameraNode, Globals.FbxIntDT, "clearFlags"); + Assert.IsTrue (clearFlagsProperty.IsValid ()); + + clearFlagsProperty.Set (4); + + // Must be marked user-defined or it won't be shown in most DCCs + clearFlagsProperty.ModifyFlag (FbxPropertyFlags.EFlags.eUserDefined, true); + clearFlagsProperty.ModifyFlag (FbxPropertyFlags.EFlags.eAnimatable, true); + + Assert.IsTrue (clearFlagsProperty.GetFlag (FbxPropertyFlags.EFlags.eUserDefined)); + Assert.IsTrue (clearFlagsProperty.GetFlag (FbxPropertyFlags.EFlags.eAnimatable)); + + // Add camera properties to animation clip + FbxAnimStack animStack = scene.GetCurrentAnimationStack (); + FbxAnimLayer animLayer = animStack.GetAnimLayerMember (); + + // TODO: (UNI-19438) Figure out why trying to do GetCurve for NearPlane always returns null + CreateAnimCurves (cameraNode, animLayer, new List () { + new PropertyComponentPair("backgroundColor", new string[] { + Globals.FBXSDK_CURVENODE_COLOR_RED, + Globals.FBXSDK_CURVENODE_COLOR_GREEN, + Globals.FBXSDK_CURVENODE_COLOR_BLUE, "W" + }), + new PropertyComponentPair("FocalLength", new string[]{null}), + new PropertyComponentPair("clearFlags", new string[]{null}) + }, (index) => { return index; }, (index) => { return index/5.0f; }, camera); + + cameraNode.SetNodeAttribute (camera); + + // set the default camera + scene.GetGlobalSettings ().SetDefaultCamera (cameraNode.GetName()); + + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + base.CheckScene (scene); + + FbxScene origScene = CreateScene (FbxManager); + + FbxNode origCameraNode = origScene.GetRootNode ().GetChild (0); + FbxNode importCameraNode = scene.GetRootNode ().GetChild (0); + + Assert.IsNotNull (origCameraNode); + Assert.IsNotNull (importCameraNode); + + Assert.AreEqual (origScene.GetGlobalSettings ().GetDefaultCamera (), scene.GetGlobalSettings ().GetDefaultCamera ()); + + FbxCamera origCamera = origCameraNode.GetCamera (); + FbxCamera importCamera = importCameraNode.GetCamera (); + + Assert.IsNotNull (origCamera); + Assert.IsNotNull (importCamera); + + CheckCameraSettings (origCamera, importCamera, origCameraNode, importCameraNode); + + // check anim + FbxAnimStack origAnimStack = origScene.GetCurrentAnimationStack(); + FbxAnimLayer origAnimLayer = origAnimStack.GetAnimLayerMember (); + Assert.IsNotNull (origAnimStack); + Assert.IsNotNull (origAnimLayer); + + FbxAnimStack importAnimStack = scene.GetCurrentAnimationStack(); + FbxAnimLayer importAnimLayer = importAnimStack.GetAnimLayerMember (); + Assert.IsNotNull (importAnimStack); + Assert.IsNotNull (importAnimLayer); + + CheckAnimCurve (origCameraNode, importCameraNode, origAnimLayer, importAnimLayer, new List(){ + new PropertyComponentPair("backgroundColor", new string[] { + Globals.FBXSDK_CURVENODE_COLOR_RED, + Globals.FBXSDK_CURVENODE_COLOR_GREEN, + Globals.FBXSDK_CURVENODE_COLOR_BLUE, "W" + }), + new PropertyComponentPair("FocalLength", new string[]{null}), + new PropertyComponentPair("clearFlags", new string[]{null}) + }, origCamera, importCamera); + } + + protected void CheckCameraSettings(FbxCamera origCamera, FbxCamera importCamera, FbxNode origCameraNode, FbxNode importCameraNode) + { + Assert.AreEqual (origCamera.ProjectionType.Get (), importCamera.ProjectionType.Get ()); + Assert.AreEqual (origCamera.AspectWidth.Get (), importCamera.AspectWidth.Get ()); + Assert.AreEqual (origCamera.AspectHeight.Get (), importCamera.AspectHeight.Get ()); + Assert.AreEqual (origCamera.GetAspectRatioMode (), importCamera.GetAspectRatioMode ()); + Assert.AreEqual (origCamera.FilmAspectRatio.Get (), importCamera.FilmAspectRatio.Get ()); + Assert.AreEqual (origCamera.GetApertureWidth (), importCamera.GetApertureWidth ()); + Assert.AreEqual (origCamera.GetApertureHeight (), importCamera.GetApertureHeight ()); + Assert.AreEqual (origCamera.GetApertureMode (), origCamera.GetApertureMode ()); + Assert.AreEqual (origCamera.FocalLength.Get (), importCamera.FocalLength.Get ()); + Assert.AreEqual (origCamera.GetNearPlane (), importCamera.GetNearPlane ()); + Assert.AreEqual (origCamera.GetFarPlane (), importCamera.GetFarPlane ()); + + foreach (var customProp in new string[]{ "backgroundColor", "clearFlags" }) { + FbxProperty property = origCameraNode.FindProperty (customProp); + Assert.IsNotNull (property); + Assert.IsTrue (property.IsValid ()); + + FbxProperty importBgColorProp = importCameraNode.FindProperty (customProp); + Assert.IsNotNull (importBgColorProp); + Assert.IsTrue (importBgColorProp.IsValid ()); + + if (property.GetPropertyDataType ().Equals(Globals.FbxColor4DT)) { + Assert.AreEqual(property.GetFbxColor(), property.GetFbxColor()); + } + else if (property.GetPropertyDataType().Equals(Globals.FbxIntDT)){ + Assert.AreEqual(property.GetInt(), property.GetInt()); + } + + Assert.AreEqual (property.GetFlag (FbxPropertyFlags.EFlags.eUserDefined), + importBgColorProp.GetFlag (FbxPropertyFlags.EFlags.eUserDefined)); + Assert.AreEqual (property.GetFlag (FbxPropertyFlags.EFlags.eAnimatable), + importBgColorProp.GetFlag (FbxPropertyFlags.EFlags.eAnimatable)); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CameraExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CameraExportTest.cs.meta new file mode 100644 index 0000000000..06009773aa --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CameraExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a8337a291c542492b803eeebe48d9452 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CustomPropertiesExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CustomPropertiesExportTest.cs new file mode 100644 index 0000000000..0abf1238b7 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CustomPropertiesExportTest.cs @@ -0,0 +1,73 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class CustomPropertiesExportTest : HierarchyExportTest + { + protected string m_customPropName = "customProp"; + + protected override FbxScene CreateScene (FbxManager manager) + { + FbxScene scene = base.CreateScene (manager); + + AddCustomProperties (scene.GetRootNode ().GetChild (0), m_customPropName, 1); + + return scene; + } + + private void AddCustomProperties(FbxNode fbxNode, string propName, int propValue) + { + var fbxProperty = FbxProperty.Create(fbxNode, Globals.FbxIntDT, propName); + Assert.IsTrue (fbxProperty.IsValid ()); + fbxProperty.Set (propValue); + + // Must be marked user-defined or it won't be shown in most DCCs + fbxProperty.ModifyFlag(FbxPropertyFlags.EFlags.eUserDefined, true); + fbxProperty.ModifyFlag(FbxPropertyFlags.EFlags.eAnimatable, true); + + for (int i = 0; i < fbxNode.GetChildCount (); i++) { + AddCustomProperties (fbxNode.GetChild (i), propName, propValue + 1); + } + } + + protected override void CheckScene (FbxScene scene) + { + base.CheckScene (scene); + + FbxScene origScene = CreateScene (FbxManager); + + FbxNode origRoot = origScene.GetRootNode ().GetChild (0); + FbxNode importRoot = scene.GetRootNode ().GetChild (0); + + CheckCustomProperties (origRoot, importRoot, m_customPropName); + } + + private void CheckCustomProperties(FbxNode origNode, FbxNode importNode, string propName) + { + var origProperty = origNode.FindProperty (propName); + var importProperty = importNode.FindProperty (propName); + + Assert.IsNotNull (origProperty); + Assert.IsNotNull (importProperty); + Assert.IsTrue (origProperty.IsValid ()); + Assert.IsTrue (importProperty.IsValid ()); + + Assert.AreEqual(origProperty.GetInt(), importProperty.GetInt()); + Assert.AreEqual(origProperty.GetFlag(FbxPropertyFlags.EFlags.eUserDefined), importProperty.GetFlag(FbxPropertyFlags.EFlags.eUserDefined)); + Assert.AreEqual (origProperty.GetFlag (FbxPropertyFlags.EFlags.eAnimatable), importProperty.GetFlag (FbxPropertyFlags.EFlags.eAnimatable)); + + Assert.AreEqual (origNode.GetChildCount (), importNode.GetChildCount ()); + for (int i = 0; i < origNode.GetChildCount (); i++) { + CheckCustomProperties (origNode.GetChild (i), importNode.GetChild (i), propName); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CustomPropertiesExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CustomPropertiesExportTest.cs.meta new file mode 100644 index 0000000000..bdde117eaa --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/CustomPropertiesExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d5ab9c09013424d24b44995cd673d7c3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/EmptyExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/EmptyExportTest.cs new file mode 100644 index 0000000000..566fd9216e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/EmptyExportTest.cs @@ -0,0 +1,73 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** + +using NUnit.Framework; +using Autodesk.Fbx; +using System.IO; +using System.Collections.Generic; + +namespace Autodesk.Fbx.UseCaseTests +{ + + internal class EmptyExportTest : RoundTripTestBase + { + + private static Dictionary m_dataValues = new Dictionary () + { + { "title", "Empty scene" }, + { "subject", "Example of an empty scene with document information settings" }, + { "author", "Unit Technologies" }, + { "revision", "1.0" }, + { "keywords", "example empty scene" }, + { "comment", "basic scene settings. Note that the scene thumnail is not set." }, + }; + + protected Dictionary dataValues { get { return m_dataValues; } } + + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__empty_export_test_"; + base.Init (); + } + + protected override FbxScene CreateScene (FbxManager manager) + { + FbxScene scene = FbxScene.Create (manager, "myScene"); + + // create scene info + FbxDocumentInfo sceneInfo = FbxDocumentInfo.Create (manager, "mySceneInfo"); + + sceneInfo.mTitle = dataValues ["title"]; + sceneInfo.mSubject = dataValues ["subject"]; + sceneInfo.mAuthor = dataValues ["author"]; + sceneInfo.mRevision = dataValues ["revision"]; + sceneInfo.mKeywords = dataValues ["keywords"]; + sceneInfo.mComment = dataValues ["comment"]; + + scene.SetSceneInfo (sceneInfo); + + // TODO: port SetSceneThumbnail + + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + Dictionary values = this.dataValues; + + FbxDocumentInfo sceneInfo = scene.GetSceneInfo (); + + Assert.AreEqual (sceneInfo.mTitle, values ["title"]); + Assert.AreEqual (sceneInfo.mSubject, values ["subject"]); + Assert.AreEqual (sceneInfo.mAuthor, values ["author"]); + Assert.AreEqual (sceneInfo.mRevision, values ["revision"]); + Assert.AreEqual (sceneInfo.mKeywords, values ["keywords"]); + Assert.AreEqual (sceneInfo.mComment, values ["comment"]); + } + } +} diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/EmptyExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/EmptyExportTest.cs.meta new file mode 100644 index 0000000000..7b0b775334 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/EmptyExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0a6017cc245b04460953e63b293e2125 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/FbxUseCaseTests.asmdef b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/FbxUseCaseTests.asmdef new file mode 100644 index 0000000000..d79ab285c2 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/FbxUseCaseTests.asmdef @@ -0,0 +1,18 @@ +{ + "name": "FbxUseCaseTests", + "references": [ + "Autodesk.Fbx" + ], + "includePlatforms": [ + "Editor" + ], + "optionalUnityReferences": [ + "TestAssemblies" + ], + "defineConstraints": [ + "!UNITY_EDITOR_LINUX" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/FbxUseCaseTests.asmdef.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/FbxUseCaseTests.asmdef.meta new file mode 100644 index 0000000000..523c2a09c1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/FbxUseCaseTests.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 7eb775172f6db634b9c817083448d7df +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/HierarchyExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/HierarchyExportTest.cs new file mode 100644 index 0000000000..54d1152d35 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/HierarchyExportTest.cs @@ -0,0 +1,81 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class HierarchyExportTest : RoundTripTestBase + { + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__hierarchy_export_test_"; + base.Init (); + } + + protected override FbxScene CreateScene (FbxManager manager) + { + // create the following node hierarchy to test: + // Root + // / \ + // Child0 Child1 + // | + // Child2 + // / | \ + // Child3 Child4 Child5 + FbxScene scene = FbxScene.Create (manager, "myScene"); + + FbxNode root = FbxNode.Create (scene, "Root"); + FbxNode[] children = new FbxNode[6]; + for (int i = 0; i < children.Length; i++) { + children [i] = FbxNode.Create (scene, "Child" + i); + } + + scene.GetRootNode ().AddChild (root); + root.AddChild (children [0]); + root.AddChild (children [1]); + children [1].AddChild (children [2]); + children [2].AddChild (children [3]); + children [2].AddChild (children [4]); + children [2].AddChild (children [5]); + + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + FbxScene origScene = CreateScene (FbxManager); + + // Compare the hierarchy of the two scenes + FbxNode origRoot = origScene.GetRootNode(); + FbxNode importRoot = scene.GetRootNode (); + + CheckSceneHelper (origRoot, importRoot); + } + + // compare the hierarchy of two nodes + private void CheckSceneHelper(FbxNode node1, FbxNode node2) + { + if (node1 == null && node2 == null) { + return; + } + + Assert.IsNotNull (node1); + Assert.IsNotNull (node2); + + Assert.AreEqual (node1.GetChildCount (), node2.GetChildCount ()); + Assert.AreEqual (node1.GetName (), node2.GetName ()); + + for (int i = 0; i < node1.GetChildCount (); i++) { + // recurse through the hierarchy + CheckSceneHelper (node1.GetChild (i), node2.GetChild (i)); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/HierarchyExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/HierarchyExportTest.cs.meta new file mode 100644 index 0000000000..53ac6265cf --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/HierarchyExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8fcb058fab64e4ebca37e496650a3c80 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/InstancesExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/InstancesExportTest.cs new file mode 100644 index 0000000000..ba0c94b86e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/InstancesExportTest.cs @@ -0,0 +1,82 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections.Generic; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class InstancesExportTest : TransformExportTest + { + protected string m_meshName = "shared mesh"; + protected string m_materialName = "shared material"; + + protected override FbxScene CreateScene (FbxManager manager) + { + FbxScene scene = base.CreateScene (manager); + + // mesh shared by all instances + FbxMesh sharedMesh = FbxMesh.Create (scene, m_meshName); + FbxSurfaceMaterial sharedMaterial = FbxSurfacePhong.Create (scene, m_materialName); + + // add mesh to all nodes + Queue nodes = new Queue(); + for (int i = 0; i < scene.GetRootNode ().GetChildCount (); i++) { + nodes.Enqueue (scene.GetRootNode ().GetChild (i)); + } + + while (nodes.Count > 0) { + FbxNode node = nodes.Dequeue (); + node.SetNodeAttribute (sharedMesh); + node.AddMaterial(sharedMaterial); + for (int i = 0; i < node.GetChildCount (); i++) { + nodes.Enqueue (node.GetChild (i)); + } + } + + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + base.CheckScene (scene); + + FbxNode rootNode = scene.GetRootNode ().GetChild(0); + Assert.IsNotNull (rootNode); + + FbxMesh sharedMesh = rootNode.GetMesh (); + Assert.IsNotNull (sharedMesh); + Assert.AreEqual (m_meshName, sharedMesh.GetName ()); + + int matIndex = rootNode.GetMaterialIndex (m_materialName); + Assert.GreaterOrEqual (matIndex, 0); + FbxSurfaceMaterial sharedMat = rootNode.GetMaterial(matIndex); + Assert.IsNotNull (sharedMat); + + // check that the mesh is the same for all children + CheckSceneHelper (rootNode, sharedMesh, sharedMat); + } + + private void CheckSceneHelper(FbxNode node, FbxMesh mesh, FbxSurfaceMaterial material) + { + if (node == null) { + return; + } + + Assert.AreEqual (mesh, node.GetMesh ()); + + int matIndex = node.GetMaterialIndex (m_materialName); + Assert.GreaterOrEqual (matIndex, 0); + Assert.AreEqual (material, node.GetMaterial (matIndex)); + + for (int i = 0; i < node.GetChildCount (); i++) { + // recurse through the hierarchy + CheckSceneHelper (node.GetChild (i), mesh, material); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/InstancesExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/InstancesExportTest.cs.meta new file mode 100644 index 0000000000..b104ec5874 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/InstancesExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 27a9eea768f8f4d1babd83990301dc80 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/LightExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/LightExportTest.cs new file mode 100644 index 0000000000..b5c74e0a84 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/LightExportTest.cs @@ -0,0 +1,155 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections.Generic; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class LightExportTest : AnimationClipsExportTest + { + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__light_export_test"; + base.Init (); + } + + protected override FbxScene CreateScene (FbxManager manager) + { + FbxScene scene = base.CreateScene (manager); + FbxNode lightNode = scene.GetRootNode ().GetChild (0); + + FbxLight light = FbxLight.Create (scene, "light"); + light.LightType.Set(FbxLight.EType.eSpot); + + light.InnerAngle.Set(20); + light.OuterAngle.Set(95); + + // Export bounceIntensity as custom property + ExportFloatProperty (lightNode, 3, "bounceIntensity"); + + light.Color.Set (new FbxDouble3(0.3, 0.1, 0.75)); + + // Export colorTemperature as custom property + ExportFloatProperty (lightNode, 6, "colorTemperature"); + + light.FileName.Set ("/path/to/texture.png"); + light.DrawGroundProjection.Set (true); + light.DrawVolumetricLight.Set (true); + light.DrawFrontFacingVolumetricLight.Set (false); + + ExportFloatProperty (lightNode, 4.2f, "cookieSize"); + + light.Intensity.Set (120); + light.FarAttenuationStart.Set (0.01f /* none zero start */); + light.FarAttenuationEnd.Set(9.8f); + light.CastShadows.Set (true); + + FbxAnimStack animStack = scene.GetCurrentAnimationStack (); + FbxAnimLayer animLayer = animStack.GetAnimLayerMember (); + + // TODO: (UNI-19438) figure out why trying to add anim curves to FbxNodeAttribute.sColor, + // Intensity and InnerAngle fails + // add animation + CreateAnimCurves (lightNode, animLayer, new List () { + new PropertyComponentPair ("colorTemperature", new string[]{null}), + new PropertyComponentPair ("cookieSize", new string[]{null}) + }, (index) => { return (index + 1)/2.0; }, (index) => { return index%2; }); + + // set ambient lighting + scene.GetGlobalSettings ().SetAmbientColor (new FbxColor (0.1, 0.2, 0.3)); + + lightNode.SetNodeAttribute (light); + scene.GetRootNode ().AddChild (lightNode); + return scene; + } + + protected FbxProperty ExportFloatProperty (FbxObject fbxObject, float value, string name) + { + var fbxProperty = FbxProperty.Create (fbxObject, Globals.FbxDoubleDT, name); + Assert.IsTrue (fbxProperty.IsValid ()); + + fbxProperty.Set (value); + + // Must be marked user-defined or it won't be shown in most DCCs + fbxProperty.ModifyFlag (FbxPropertyFlags.EFlags.eUserDefined, true); + fbxProperty.ModifyFlag (FbxPropertyFlags.EFlags.eAnimatable, true); + + return fbxProperty; + } + + protected override void CheckScene (FbxScene scene) + { + base.CheckScene (scene); + FbxScene origScene = CreateScene (FbxManager); + + FbxNode origLightNode = origScene.GetRootNode ().GetChild (0); + FbxNode importLightNode = scene.GetRootNode ().GetChild (0); + Assert.IsNotNull (origLightNode); + Assert.IsNotNull (importLightNode); + + FbxLight origLight = origLightNode.GetLight (); + FbxLight importLight = importLightNode.GetLight (); + Assert.IsNotNull (origLight); + Assert.IsNotNull (importLight); + + Assert.AreEqual (origLight.GetName (), importLight.GetName ()); + + // Check properties + CheckProperties( + origLightNode, importLightNode, + origLight, importLight, + new string[]{ "bounceIntensity", "colorTemperature", "cookieSize" } + ); + + // Check anim + FbxAnimStack origAnimStack = origScene.GetCurrentAnimationStack(); + FbxAnimLayer origAnimLayer = origAnimStack.GetAnimLayerMember (); + Assert.IsNotNull (origAnimStack); + Assert.IsNotNull (origAnimLayer); + + FbxAnimStack importAnimStack = scene.GetCurrentAnimationStack(); + FbxAnimLayer importAnimLayer = importAnimStack.GetAnimLayerMember (); + Assert.IsNotNull (importAnimStack); + Assert.IsNotNull (importAnimLayer); + + // TODO: (UNI-19438) figure out why trying to add anim curves to FbxNodeAttribute.sColor, + // Intensity and InnerAngle fails + CheckAnimCurve (origLightNode, importLightNode, origAnimLayer, importAnimLayer, new List(){ + new PropertyComponentPair ("colorTemperature", new string[]{null}), + new PropertyComponentPair ("cookieSize", new string[]{null}) + }, origLight, importLight); + } + + protected void CheckProperties( + FbxNode origLightNode, FbxNode importLightNode, + FbxLight origLight, FbxLight importLight, string[] customProperties) + { + Assert.AreEqual (origLight.LightType.Get (), importLight.LightType.Get ()); + Assert.AreEqual (origLight.InnerAngle.Get (), importLight.InnerAngle.Get ()); + Assert.AreEqual (origLight.OuterAngle.Get (), importLight.OuterAngle.Get ()); + Assert.AreEqual (origLight.Color.Get (), importLight.Color.Get ()); + Assert.AreEqual (origLight.FileName.Get (), importLight.FileName.Get ()); + Assert.AreEqual (origLight.DrawGroundProjection.Get (), importLight.DrawGroundProjection.Get ()); + Assert.AreEqual (origLight.DrawVolumetricLight.Get (), importLight.DrawVolumetricLight.Get ()); + Assert.That (origLight.DrawFrontFacingVolumetricLight.Get (), Is.EqualTo(importLight.DrawFrontFacingVolumetricLight.Get ()).Within(2).Ulps); + Assert.AreEqual (origLight.Intensity.Get (), importLight.Intensity.Get ()); + Assert.That (origLight.FarAttenuationStart.Get (), Is.EqualTo(importLight.FarAttenuationStart.Get ()).Within(2).Ulps); + Assert.That (origLight.FarAttenuationEnd.Get (), Is.EqualTo(importLight.FarAttenuationEnd.Get ()).Within(2).Ulps); + Assert.AreEqual (origLight.CastShadows.Get (), importLight.CastShadows.Get ()); + + foreach (var customProp in customProperties) { + var origProperty = origLightNode.FindProperty (customProp); + var importProperty = importLightNode.FindProperty (customProp); + Assert.IsNotNull (origProperty); + Assert.IsNotNull (importProperty); + Assert.AreEqual (origProperty.GetFloat (), importProperty.GetFloat ()); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/LightExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/LightExportTest.cs.meta new file mode 100644 index 0000000000..180788d8f4 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/LightExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 99cc72abf56324395ac6e705d557e085 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/RoundTripTestBase.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/RoundTripTestBase.cs new file mode 100644 index 0000000000..d39221a791 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/RoundTripTestBase.cs @@ -0,0 +1,165 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using System.IO; +using System.Collections.Generic; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal abstract class RoundTripTestBase + { + private string _filePath; + protected string filePath { get { return string.IsNullOrEmpty(_filePath) ? "." : _filePath; } set { _filePath = value; } } + + private string _fileNamePrefix; + protected string fileNamePrefix { get { return string.IsNullOrEmpty(_fileNamePrefix) ? "_safe_to_delete__" : _fileNamePrefix; } + set { _fileNamePrefix = value; } } + + private string _fileNameExt; + protected string fileNameExt { get { return string.IsNullOrEmpty(_fileNameExt) ? ".fbx" : _fileNameExt; } set { _fileNameExt = value; } } + + private string MakeFileName(string baseName = null, string prefixName = null, string extName = null) + { + if (baseName==null) + baseName = Path.GetRandomFileName(); + + if (prefixName==null) + prefixName = this.fileNamePrefix; + + if (extName==null) + extName = this.fileNameExt; + + return prefixName + baseName + extName; + } + + protected string GetRandomFileNamePath(string pathName = null, string prefixName = null, string extName = null) + { + string temp; + + if (pathName==null) + pathName = this.filePath; + + if (prefixName==null) + prefixName = this.fileNamePrefix; + + if (extName==null) + extName = this.fileNameExt; + + // repeat until you find a file that does not already exist + do { + temp = Path.Combine (pathName, MakeFileName(prefixName: prefixName, extName: extName)); + + } while(File.Exists (temp)); + + return temp; + } + + private FbxManager m_fbxManager; + + protected FbxManager FbxManager { get { return m_fbxManager; } } + + [SetUp] + public virtual void Init () + { + foreach (string file in Directory.GetFiles (this.filePath, MakeFileName("*"))) { + File.Delete (file); + } + + // create fbx manager. + m_fbxManager = FbxManager.Create (); + + // configure IO settings. + m_fbxManager.SetIOSettings (FbxIOSettings.Create (m_fbxManager, Globals.IOSROOT)); + } + + [TearDown] + public virtual void Term () + { + try { + m_fbxManager.Destroy (); + } + catch (System.ArgumentNullException) { + } + } + + protected virtual FbxScene CreateScene (FbxManager manager) + { + return FbxScene.Create (manager, "myScene"); + } + + protected virtual void CheckScene (FbxScene scene) + {} + + protected void ExportScene (string fileName) + { + // Export the scene + using (FbxExporter exporter = FbxExporter.Create (FbxManager, "myExporter")) { + + // Initialize the exporter. + bool status = exporter.Initialize (fileName, -1, FbxManager.GetIOSettings ()); + + // Check that export status is True + Assert.IsTrue (status); + + // Create a new scene so it can be populated by the imported file. + FbxScene scene = CreateScene (FbxManager); + + CheckScene (scene); + + // Export the scene to the file. + exporter.Export (scene); + + // Check if file exists + Assert.IsTrue (File.Exists (fileName)); + } + } + + protected void ImportScene (string fileName) + { + // Import the scene to make sure file is valid + using (FbxImporter importer = FbxImporter.Create (FbxManager, "myImporter")) { + + // Initialize the importer. + bool status = importer.Initialize (fileName, -1, FbxManager.GetIOSettings ()); + + Assert.IsTrue (status); + + // Create a new scene so it can be populated by the imported file. + FbxScene scene = FbxScene.Create (FbxManager, "myScene"); + + // Import the contents of the file into the scene. + importer.Import (scene); + + // check that the scene is valid + CheckScene (scene); + } + } + + [Test] + public void TestExportScene () + { + var fileName = GetRandomFileNamePath (); + + this.ExportScene (fileName); + + File.Delete (fileName); + } + + [Test] + public void TestRoundTrip () + { + var fileName = GetRandomFileNamePath (); + + this.ExportScene (fileName); + this.ImportScene (fileName); + + File.Delete (fileName); + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/RoundTripTestBase.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/RoundTripTestBase.cs.meta new file mode 100644 index 0000000000..a954026d79 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/RoundTripTestBase.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7cf6067adcbbd4a948a4f15b63ca8ce5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/SkinnedMeshExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/SkinnedMeshExportTest.cs new file mode 100644 index 0000000000..ea06bf46a3 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/SkinnedMeshExportTest.cs @@ -0,0 +1,284 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections.Generic; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class SkinnedMeshExportTest : StaticMeshExportTest + { + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__skinned_mesh_export_test"; + base.Init (); + } + + protected override FbxScene CreateScene (FbxManager manager) + { + // Add a skeleton to the cube that we created in StaticMeshExportTest + FbxScene scene = base.CreateScene (manager); + + FbxNode meshNode = scene.GetRootNode().GetChild(0); + FbxNode skeletonRootNode = CreateSkeleton(scene); + + FbxNode rootNode = scene.GetRootNode (); + rootNode.AddChild (skeletonRootNode); + + LinkMeshToSkeleton (scene, meshNode, skeletonRootNode); + + FbxNode limb1 = skeletonRootNode.GetChild (0); + FbxNode limb2 = limb1.GetChild (0); + + ExportBindPose (meshNode, scene, new List (){ skeletonRootNode, limb1, limb2 }); + + return scene; + } + + protected FbxNode CreateSkeleton(FbxScene scene) + { + FbxSkeleton skelRoot = FbxSkeleton.Create (scene, "SkelRoot"); + skelRoot.SetSkeletonType (FbxSkeleton.EType.eRoot); + FbxNode skelRootNode = FbxNode.Create (scene, "SkelRootNode"); + skelRootNode.SetNodeAttribute (skelRoot); + skelRootNode.LclTranslation.Set(new FbxDouble3(0.0, -40.0, 0.0)); + + // create skeleton limb nodes + FbxSkeleton skelLimb1 = FbxSkeleton.Create(scene, "SkelLimb1"); + skelLimb1.SetSkeletonType (FbxSkeleton.EType.eLimbNode); + skelLimb1.Size.Set (1.5); + FbxNode skelLimbNode1 = FbxNode.Create (scene, "SkelLimbNode1"); + skelLimbNode1.SetNodeAttribute (skelLimb1); + skelLimbNode1.LclTranslation.Set (new FbxDouble3 (0.0, 40.0, 0.0)); + + FbxSkeleton skelLimb2 = FbxSkeleton.Create(scene, "SkelLimb2"); + skelLimb2.SetSkeletonType (FbxSkeleton.EType.eLimbNode); + skelLimb2.Size.Set (1.5); + FbxNode skelLimbNode2 = FbxNode.Create (scene, "SkelLimbNode2"); + skelLimbNode2.SetNodeAttribute (skelLimb2); + skelLimbNode2.LclTranslation.Set (new FbxDouble3 (0.0, 40.0, 0.0)); + + // build skeleton hierarchy + skelRootNode.AddChild (skelLimbNode1); + skelLimbNode1.AddChild (skelLimbNode2); + + return skelRootNode; + } + + protected void LinkMeshToSkeleton(FbxScene scene, FbxNode meshNode, FbxNode skelRootNode) + { + FbxNode limb1 = skelRootNode.GetChild (0); + FbxNode limb2 = limb1.GetChild (0); + + FbxCluster rootCluster = FbxCluster.Create (scene, "RootCluster"); + rootCluster.SetLink (skelRootNode); + rootCluster.SetLinkMode (FbxCluster.ELinkMode.eTotalOne); + for (int i = 0; i < 4; i++) { + for (int j = 0; j < 4; j++) { + rootCluster.AddControlPointIndex (4 * i + j, 1.0 - 0.25 * i); + } + } + + FbxCluster limb1Cluster = FbxCluster.Create (scene, "Limb1Cluster"); + limb1Cluster.SetLink (limb1); + limb1Cluster.SetLinkMode (FbxCluster.ELinkMode.eTotalOne); + for (int i = 1; i < 6; i++) { + for (int j = 0; j < 4; j++) { + limb1Cluster.AddControlPointIndex (4 * i + j, (i == 1 || i == 5 ? 0.25 : 0.5)); + } + } + + FbxCluster limb2Cluster = FbxCluster.Create (scene, "Limb2Cluster"); + limb2Cluster.SetLink (limb2); + limb2Cluster.SetLinkMode (FbxCluster.ELinkMode.eTotalOne); + for (int i = 3; i < 7; i++) { + for (int j = 0; j < 4; j++) { + limb2Cluster.AddControlPointIndex (4 * i + j, 0.25 * (i - 2)); + } + } + + FbxAMatrix globalTransform = meshNode.EvaluateGlobalTransform (); + + rootCluster.SetTransformMatrix (globalTransform); + limb1Cluster.SetTransformMatrix (globalTransform); + limb2Cluster.SetTransformMatrix (globalTransform); + + rootCluster.SetTransformLinkMatrix (skelRootNode.EvaluateGlobalTransform ()); + limb1Cluster.SetTransformLinkMatrix (limb1.EvaluateGlobalTransform ()); + limb2Cluster.SetTransformLinkMatrix (limb2.EvaluateGlobalTransform ()); + + FbxSkin skin = FbxSkin.Create (scene, "Skin"); + skin.AddCluster (rootCluster); + skin.AddCluster (limb1Cluster); + skin.AddCluster (limb2Cluster); + meshNode.GetMesh ().AddDeformer (skin); + } + + protected void ExportBindPose (FbxNode meshNode, FbxScene fbxScene, List boneNodes) + { + FbxPose fbxPose = FbxPose.Create (fbxScene, "Pose"); + + // set as bind pose + fbxPose.SetIsBindPose (true); + + // assume each bone node has one weighted vertex cluster + foreach (FbxNode fbxNode in boneNodes) + { + // EvaluateGlobalTransform returns an FbxAMatrix (affine matrix) + // which has to be converted to an FbxMatrix so that it can be passed to fbxPose.Add(). + // The hierarchy for FbxMatrix and FbxAMatrix is as follows: + // + // FbxDouble4x4 + // / \ + // FbxMatrix FbxAMatrix + // + // Therefore we can't convert directly from FbxAMatrix to FbxMatrix, + // however FbxMatrix has a constructor that takes an FbxAMatrix. + FbxMatrix fbxBindMatrix = new FbxMatrix(fbxNode.EvaluateGlobalTransform ()); + + fbxPose.Add (fbxNode, fbxBindMatrix); + } + + FbxMatrix bindMatrix = new FbxMatrix(meshNode.EvaluateGlobalTransform ()); + + fbxPose.Add (meshNode, bindMatrix); + + // add the pose to the scene + fbxScene.AddPose (fbxPose); + } + + protected override void CheckScene (FbxScene scene) + { + base.CheckScene (scene); + + FbxScene origScene = CreateScene (FbxManager); + + Assert.AreEqual (origScene.GetRootNode ().GetChildCount (), origScene.GetRootNode ().GetChildCount ()); + + FbxNode origMeshNode = origScene.GetRootNode ().GetChild (0); + FbxNode importMeshNode = scene.GetRootNode ().GetChild (0); + + FbxNode origSkelRootNode = origScene.GetRootNode ().GetChild (1); + FbxNode importSkelRootNode = scene.GetRootNode ().GetChild (1); + + // Check that the skeletons match + CheckSkeleton(origSkelRootNode, importSkelRootNode); + + // TODO: Fix so that calling GetDeformer either allows us to downcast + // to FbxSkin, or so that it just returns the correct type. + // Check that the mesh is correctly linked to the skeleton + //CheckMeshLinkedToSkeleton(origMeshNode.GetMesh(), importMeshNode.GetMesh()); + origMeshNode.GetMesh(); + importMeshNode.GetMesh (); + + // Check that bind pose is set correctly + CheckExportBindPose(origScene, scene); + } + + struct SkelNodePair { + public FbxNode origNode; + public FbxNode importNode; + public bool isRoot; + + public SkelNodePair(FbxNode origNode, FbxNode importNode, bool isRoot = false){ + this.origNode = origNode; + this.importNode = importNode; + this.isRoot = isRoot; + } + } + + protected void CheckSkeleton(FbxNode origRootNode, FbxNode importRootNode) + { + FbxNode origLimb1Node = origRootNode.GetChild (0); + FbxNode importLimb1Node = importRootNode.GetChild (0); + + FbxNode origLimb2Node = origLimb1Node.GetChild (0); + FbxNode importLimb2Node = importLimb1Node.GetChild (0); + + foreach (var skelNodePair in new SkelNodePair[]{ new SkelNodePair(origRootNode, importRootNode, true), + new SkelNodePair(origLimb1Node, importLimb1Node), new SkelNodePair(origLimb2Node, importLimb2Node) }) { + FbxSkeleton origSkel = skelNodePair.origNode.GetSkeleton (); + FbxSkeleton importSkel = skelNodePair.importNode.GetSkeleton (); + + Assert.IsNotNull (origSkel); + Assert.IsNotNull (importSkel); + + Assert.AreEqual (origSkel.GetName (), importSkel.GetName ()); + Assert.AreEqual (origSkel.GetSkeletonType (), importSkel.GetSkeletonType ()); + Assert.AreEqual (skelNodePair.origNode.LclTranslation.Get (), skelNodePair.importNode.LclTranslation.Get ()); + + if (!skelNodePair.isRoot) { + Assert.AreEqual (origSkel.Size.Get (), importSkel.Size.Get ()); + } + } + } + + struct ClusterPair { + public FbxCluster orig; + public FbxCluster import; + + public ClusterPair(FbxCluster orig, FbxCluster import){ + this.orig = orig; + this.import = import; + } + } + + protected void CheckMeshLinkedToSkeleton(FbxMesh origMesh, FbxMesh importMesh) + { + FbxSkin origSkin = origMesh.GetDeformer (0, new FbxStatus()) as FbxSkin; + Assert.IsNotNull (origSkin); + + FbxSkin importSkin = origMesh.GetDeformer (0, new FbxStatus()) as FbxSkin; + Assert.IsNotNull (importSkin); + + ClusterPair[] clusters = new ClusterPair[3]; + + for (int i = 0; i < 3; i++) { + FbxCluster origCluster = origSkin.GetCluster (i); + Assert.IsNotNull (origCluster); + + FbxCluster importCluster = importSkin.GetCluster (i); + Assert.IsNotNull (importCluster); + + clusters [i] = new ClusterPair (origCluster, importCluster); + } + + foreach (var c in clusters) { + FbxAMatrix origTransformMatrix = null; + FbxAMatrix importTransformMatrix = null; + Assert.AreEqual (c.orig.GetTransformMatrix (origTransformMatrix), c.import.GetTransformMatrix (importTransformMatrix)); + Assert.AreEqual (c.orig.GetTransformLinkMatrix (origTransformMatrix), c.import.GetTransformLinkMatrix (importTransformMatrix)); + + Assert.AreEqual (c.orig.GetLink (), c.import.GetLink ()); + Assert.AreEqual (c.orig.GetLinkMode (), c.import.GetLinkMode ()); + Assert.AreEqual (c.orig.GetControlPointIndicesCount (), c.import.GetControlPointIndicesCount ()); + + for (int i = 0; i < c.orig.GetControlPointIndicesCount (); i++) { + Assert.AreEqual (c.orig.GetControlPointIndexAt (i), c.import.GetControlPointIndexAt (i)); + Assert.AreEqual (c.orig.GetControlPointWeightAt (i), c.import.GetControlPointWeightAt (i)); + } + } + } + + protected void CheckExportBindPose(FbxScene origScene, FbxScene importScene) + { + FbxPose origPose = origScene.GetPose (0); + FbxPose importPose = importScene.GetPose (0); + + Assert.IsNotNull (origPose); + Assert.IsNotNull (importPose); + Assert.AreEqual (origPose.IsBindPose (), importPose.IsBindPose ()); + Assert.AreEqual (origPose.GetCount (), importPose.GetCount ()); + + for (int i = 0; i < origPose.GetCount (); i++) { + Assert.AreEqual (origPose.GetNode (i).GetName (), importPose.GetNode (i).GetName ()); + Assert.AreEqual (origPose.GetMatrix (i), importPose.GetMatrix (i)); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/SkinnedMeshExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/SkinnedMeshExportTest.cs.meta new file mode 100644 index 0000000000..68f38bb630 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/SkinnedMeshExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ddd1a6ac6046d4182bc0d643f093645b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/StaticMeshExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/StaticMeshExportTest.cs new file mode 100644 index 0000000000..124cb9ef27 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/StaticMeshExportTest.cs @@ -0,0 +1,509 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using System.Collections.Generic; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class StaticMeshExportTest : RoundTripTestBase + { + // Define the corners of a cube that spans from + // -50 to 50 on the x and z axis, and 0 to 100 on the y axis + protected FbxVector4 vertex0 = new FbxVector4(-50, 0, 50); + protected FbxVector4 vertex1 = new FbxVector4(50, 0, 50); + protected FbxVector4 vertex2 = new FbxVector4(50, 100, 50); + protected FbxVector4 vertex3 = new FbxVector4(-50, 100, 50); + protected FbxVector4 vertex4 = new FbxVector4(-50, 0, -50); + protected FbxVector4 vertex5 = new FbxVector4(50, 0, -50); + protected FbxVector4 vertex6 = new FbxVector4(50, 100, -50); + protected FbxVector4 vertex7 = new FbxVector4(-50, 100, -50); + + // Control points for generating a simple cube + protected FbxVector4[] m_controlPoints; + + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__static_mesh_export_test_"; + base.Init (); + + m_controlPoints = new FbxVector4[] { + vertex0, vertex1, vertex2, vertex3, // Face 1 + vertex1, vertex5, vertex6, vertex2, // Face 2 + vertex5, vertex4, vertex7, vertex6, // Face 3 + vertex4, vertex0, vertex3, vertex7, // Face 4 + vertex3, vertex2, vertex6, vertex7, // Face 5 + vertex1, vertex0, vertex4, vertex5, // Face 6 + }; + } + + protected override FbxScene CreateScene (FbxManager manager) + { + // Create a cube as a static mesh + + FbxScene scene = FbxScene.Create (manager, "myScene"); + + FbxNode meshNode = FbxNode.Create (scene, "MeshNode"); + FbxMesh cubeMesh = FbxMesh.Create (scene, "cube"); + + meshNode.SetNodeAttribute (cubeMesh); + + scene.GetRootNode ().AddChild (meshNode); + + cubeMesh.InitControlPoints (24); + + for (int i = 0; i < cubeMesh.GetControlPointsCount (); i++) { + cubeMesh.SetControlPointAt (m_controlPoints [i], i); + } + + // A cube: 6 polygons with 4 vertices each + int[] vertices = + { + 0, 1, 2, 3, + 4, 5, 6, 7, + 8, 9, 10, 11, + 12, 13, 14, 15, + 16, 17, 18, 19, + 20, 21, 22, 23 + }; + + for (int i = 0; i < 6; i++) + { + cubeMesh.BeginPolygon(pGroup: -1); + for (int j = 0; j < 4; j++) + { + cubeMesh.AddPolygon(vertices[i * 4 + j]); + } + + cubeMesh.EndPolygon(); + } + + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + FbxScene origScene = CreateScene (FbxManager); + + Assert.IsNotNull (origScene); + Assert.IsNotNull (scene); + + // Retrieve the mesh from each scene + FbxMesh origMesh = origScene.GetRootNode().GetChild(0).GetMesh(); + FbxMesh importMesh = scene.GetRootNode ().GetChild(0).GetMesh (); + + Assert.IsNotNull (origMesh); + Assert.IsNotNull (importMesh); + + // check that the control points match + Assert.AreEqual(origMesh.GetControlPointsCount(), importMesh.GetControlPointsCount()); + + for (int i = 0; i < origMesh.GetControlPointsCount (); i++) { + FbxVector4 origControlPoint = origMesh.GetControlPointAt (i); + FbxVector4 importControlPoint = importMesh.GetControlPointAt (i); + + // Note: Ignoring W as no matter what it is set to it always imports as 0 + Assert.AreEqual (origControlPoint.X, importControlPoint.X); + Assert.AreEqual (origControlPoint.Y, importControlPoint.Y); + Assert.AreEqual (origControlPoint.Z, importControlPoint.Z); + } + } + } + + internal class StaticMeshWithNormalsExportTest : StaticMeshExportTest + { + // Define normal vectors along each axis + protected FbxVector4 normalXPos = new FbxVector4(1,0,0); + protected FbxVector4 normalXNeg = new FbxVector4(-1,0,0); + protected FbxVector4 normalYPos = new FbxVector4(0,1,0); + protected FbxVector4 normalYNeg = new FbxVector4(0,-1,0); + protected FbxVector4 normalZPos = new FbxVector4(0,0,1); + protected FbxVector4 normalZNeg = new FbxVector4(0,0,-1); + + protected override FbxScene CreateScene (FbxManager manager) + { + FbxScene scene = base.CreateScene (manager); + + // Add normals, binormals, UVs, tangents and vertex colors to the cube + FbxMesh cubeMesh = scene.GetRootNode ().GetChild (0).GetMesh (); + + // Add normals + /// Set the Normals on Layer 0. + FbxLayer fbxLayer = cubeMesh.GetLayer (0 /* default layer */); + if (fbxLayer == null) + { + cubeMesh.CreateLayer (); + fbxLayer = cubeMesh.GetLayer (0 /* default layer */); + } + + using (var fbxLayerElement = FbxLayerElementNormal.Create (cubeMesh, "Normals")) + { + fbxLayerElement.SetMappingMode (FbxLayerElement.EMappingMode.eByControlPoint); + fbxLayerElement.SetReferenceMode (FbxLayerElement.EReferenceMode.eDirect); + + // Add one normal per each vertex face index (3 per triangle) + FbxLayerElementArray fbxElementArray = fbxLayerElement.GetDirectArray (); + + // Assign the normal vectors in the same order the control points were defined + FbxVector4[] normals = {normalZPos, normalXPos, normalZNeg, normalXNeg, normalYPos, normalYNeg}; + for (int n = 0; n < normals.Length; n++) { + for (int i = 0; i < 4; i++) { + fbxElementArray.Add (normals [n]); + } + } + fbxLayer.SetNormals (fbxLayerElement); + } + + /// Set the binormals on Layer 0. + using (var fbxLayerElement = FbxLayerElementBinormal.Create (cubeMesh, "Binormals")) + { + fbxLayerElement.SetMappingMode (FbxLayerElement.EMappingMode.eByControlPoint); + fbxLayerElement.SetReferenceMode (FbxLayerElement.EReferenceMode.eDirect); + + // Add one normal per each vertex face index (3 per triangle) + FbxLayerElementArray fbxElementArray = fbxLayerElement.GetDirectArray (); + + for (int n = 0; n < cubeMesh.GetControlPointsCount(); n++) { + fbxElementArray.Add (new FbxVector4 (-1,0,1)); // TODO: set to correct values + } + fbxLayer.SetBinormals (fbxLayerElement); + } + + /// Set the tangents on Layer 0. + using (var fbxLayerElement = FbxLayerElementTangent.Create (cubeMesh, "Tangents")) + { + fbxLayerElement.SetMappingMode (FbxLayerElement.EMappingMode.eByControlPoint); + fbxLayerElement.SetReferenceMode (FbxLayerElement.EReferenceMode.eDirect); + + // Add one normal per each vertex face index (3 per triangle) + FbxLayerElementArray fbxElementArray = fbxLayerElement.GetDirectArray (); + + for (int n = 0; n < cubeMesh.GetControlPointsCount(); n++) { + fbxElementArray.Add (new FbxVector4 (0,-1,1)); // TODO: set to correct values + } + fbxLayer.SetTangents (fbxLayerElement); + } + + // set the vertex colors + using (var fbxLayerElement = FbxLayerElementVertexColor.Create (cubeMesh, "VertexColors")) + { + fbxLayerElement.SetMappingMode (FbxLayerElement.EMappingMode.eByControlPoint); + fbxLayerElement.SetReferenceMode (FbxLayerElement.EReferenceMode.eDirect); + + // Add one normal per each vertex face index (3 per triangle) + FbxLayerElementArray fbxElementArray = fbxLayerElement.GetDirectArray (); + + // make each vertex either black or white + for (int n = 0; n < cubeMesh.GetControlPointsCount (); n++) { + fbxElementArray.Add (new FbxColor (n % 2, n % 2, n % 2)); + } + + fbxLayer.SetVertexColors (fbxLayerElement); + } + + // set the UVs + using (var fbxLayerElement = FbxLayerElementUV.Create (cubeMesh, "UVSet")) + { + fbxLayerElement.SetMappingMode (FbxLayerElement.EMappingMode.eByPolygonVertex); + fbxLayerElement.SetReferenceMode (FbxLayerElement.EReferenceMode.eIndexToDirect); + + // set texture coordinates per vertex + FbxLayerElementArray fbxElementArray = fbxLayerElement.GetDirectArray (); + + for (int n = 0; n < 8; n++) { + fbxElementArray.Add (new FbxVector2 (n % 2,1)); // TODO: switch to correct values + } + + // For each face index, point to a texture uv + FbxLayerElementArray fbxIndexArray = fbxLayerElement.GetIndexArray (); + fbxIndexArray.SetCount (24); + + for (int vertIndex = 0; vertIndex < 24; vertIndex++) + { + fbxIndexArray.SetAt (vertIndex, vertIndex % 8); // TODO: switch to correct values + } + fbxLayer.SetUVs (fbxLayerElement, FbxLayerElement.EType.eTextureDiffuse); + } + + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + base.CheckScene (scene); + + FbxScene origScene = CreateScene (FbxManager); + Assert.IsNotNull (origScene); + + // Retrieve the mesh from each scene + FbxMesh origMesh = origScene.GetRootNode().GetChild(0).GetMesh(); + FbxMesh importMesh = scene.GetRootNode ().GetChild(0).GetMesh (); + + // get the layers + FbxLayer origLayer = origMesh.GetLayer (0 /* default layer */); + FbxLayer importLayer = importMesh.GetLayer (0 /* default layer */); + + // Check normals + CheckFbxElementVector4(origLayer.GetNormals(), importLayer.GetNormals()); + + // Check binormals + CheckFbxElementVector4(origLayer.GetBinormals(), importLayer.GetBinormals()); + + // Check tangents + CheckFbxElementVector4(origLayer.GetTangents(), importLayer.GetTangents()); + + // Check vertex colors + var origVertexColorElement = origLayer.GetVertexColors(); + var importVertexColorElement = importLayer.GetVertexColors (); + + Assert.AreEqual (origVertexColorElement.GetMappingMode (), importVertexColorElement.GetMappingMode()); + Assert.AreEqual (origVertexColorElement.GetReferenceMode (), importVertexColorElement.GetReferenceMode ()); + + var origVertexColorElementArray = origVertexColorElement.GetDirectArray (); + var importVertexColorElementArray = importVertexColorElement.GetDirectArray (); + + Assert.AreEqual (origVertexColorElementArray.GetCount (), importVertexColorElementArray.GetCount ()); + + for (int i = 0; i < origVertexColorElementArray.GetCount (); i++) { + Assert.AreEqual (origVertexColorElementArray.GetAt (i), importVertexColorElementArray.GetAt (i)); + } + + // Check UVs + var origUVElement = origLayer.GetUVs(); + var importUVElement = importLayer.GetUVs (); + + Assert.AreEqual (origUVElement.GetMappingMode (), importUVElement.GetMappingMode()); + Assert.AreEqual (origUVElement.GetReferenceMode (), importUVElement.GetReferenceMode ()); + + var origUVElementArray = origUVElement.GetDirectArray (); + var importUVElementArray = importUVElement.GetDirectArray (); + + Assert.AreEqual (origUVElementArray.GetCount (), importUVElementArray.GetCount ()); + + for (int i = 0; i < origUVElementArray.GetCount (); i++) { + Assert.AreEqual (origUVElementArray.GetAt (i), importUVElementArray.GetAt (i)); + } + + var origUVElementIndex = origUVElement.GetIndexArray (); + var importUVElementIndex = origUVElement.GetIndexArray (); + + Assert.AreEqual (origUVElementIndex.GetCount (), importUVElementIndex.GetCount ()); + + for (int i = 0; i < origUVElementIndex.GetCount (); i++) { + Assert.AreEqual (origUVElementIndex.GetAt (i), importUVElementIndex.GetAt (i)); + } + } + + // helper for above, to check normals, binormals, and tangents + protected void CheckFbxElementVector4( + FbxLayerElementTemplateFbxVector4 origElement, + FbxLayerElementTemplateFbxVector4 importElement) + { + Assert.AreEqual (origElement.GetMappingMode (), importElement.GetMappingMode()); + Assert.AreEqual (origElement.GetReferenceMode (), importElement.GetReferenceMode ()); + + var origElementArray = origElement.GetDirectArray (); + var importElementArray = importElement.GetDirectArray (); + + Assert.AreEqual (origElementArray.GetCount (), importElementArray.GetCount ()); + + for (int i = 0; i < origElementArray.GetCount (); i++) { + Assert.AreEqual (origElementArray.GetAt (i), importElementArray.GetAt (i)); + } + } + } + + internal class StaticMeshWithMaterialExportTest : StaticMeshExportTest { + + private string m_materialName = "MaterialTest"; + + enum PropertyType { Color, Double3, Double }; + + struct Property { + public PropertyType type; + public string name; + + public Property(string name, PropertyType type){ + this.name = name; + this.type = type; + } + } + + protected override FbxScene CreateScene (FbxManager manager) + { + FbxScene scene = base.CreateScene (manager); + + // Set the UVs + FbxMesh cubeMesh = scene.GetRootNode ().GetChild (0).GetMesh (); + + FbxLayer fbxLayer = cubeMesh.GetLayer (0 /* default layer */); + if (fbxLayer == null) + { + cubeMesh.CreateLayer (); + fbxLayer = cubeMesh.GetLayer (0 /* default layer */); + } + + using (var fbxLayerElement = FbxLayerElementUV.Create (cubeMesh, "UVSet")) + { + fbxLayerElement.SetMappingMode (FbxLayerElement.EMappingMode.eByPolygonVertex); + fbxLayerElement.SetReferenceMode (FbxLayerElement.EReferenceMode.eIndexToDirect); + + // set texture coordinates per vertex + FbxLayerElementArray fbxElementArray = fbxLayerElement.GetDirectArray (); + + for (int n = 0; n < 8; n++) { + fbxElementArray.Add (new FbxVector2 (n % 2,1)); // TODO: switch to correct values + } + + // For each face index, point to a texture uv + FbxLayerElementArray fbxIndexArray = fbxLayerElement.GetIndexArray (); + fbxIndexArray.SetCount (24); + + for (int vertIndex = 0; vertIndex < 24; vertIndex++) + { + fbxIndexArray.SetAt (vertIndex, vertIndex % 8); // TODO: switch to correct values + } + fbxLayer.SetUVs (fbxLayerElement, FbxLayerElement.EType.eTextureDiffuse); + } + + // Create the material + var fbxMaterial = FbxSurfacePhong.Create (scene, m_materialName); + + fbxMaterial.Diffuse.Set(new FbxColor(1,1,1)); + fbxMaterial.Emissive.Set(new FbxColor(0.5,0.1,0.2)); + fbxMaterial.Ambient.Set(new FbxDouble3 (0.3, 0.4, 0)); + fbxMaterial.BumpFactor.Set (0.6); + fbxMaterial.Specular.Set(new FbxDouble3(0.8, 0.7, 0.9)); + + // Create and add the texture + var fbxMaterialProperty = fbxMaterial.FindProperty (FbxSurfaceMaterial.sDiffuse); + Assert.IsNotNull (fbxMaterialProperty); + Assert.IsTrue (fbxMaterialProperty.IsValid ()); + + var fbxTexture = FbxFileTexture.Create (fbxMaterial, FbxSurfaceMaterial.sDiffuse + "_Texture"); + fbxTexture.SetFileName ("/path/to/some/texture.jpg"); + fbxTexture.SetTextureUse (FbxTexture.ETextureUse.eStandard); + fbxTexture.SetMappingType (FbxTexture.EMappingType.eUV); + + fbxTexture.ConnectDstProperty (fbxMaterialProperty); + + scene.GetRootNode ().GetChild (0).AddMaterial (fbxMaterial); + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + base.CheckScene (scene); + + FbxScene origScene = CreateScene (FbxManager); + Assert.IsNotNull (origScene); + + // Retrieve the mesh from each scene + FbxMesh origMesh = origScene.GetRootNode().GetChild(0).GetMesh(); + FbxMesh importMesh = scene.GetRootNode ().GetChild(0).GetMesh (); + + // get the layers + FbxLayer origLayer = origMesh.GetLayer (0 /* default layer */); + FbxLayer importLayer = importMesh.GetLayer (0 /* default layer */); + + // Check UVs + var origUVElement = origLayer.GetUVs(); + var importUVElement = importLayer.GetUVs (); + + Assert.AreEqual (origUVElement.GetMappingMode (), importUVElement.GetMappingMode()); + Assert.AreEqual (origUVElement.GetReferenceMode (), importUVElement.GetReferenceMode ()); + + var origUVElementArray = origUVElement.GetDirectArray (); + var importUVElementArray = importUVElement.GetDirectArray (); + + Assert.AreEqual (origUVElementArray.GetCount (), importUVElementArray.GetCount ()); + + for (int i = 0; i < origUVElementArray.GetCount (); i++) { + Assert.AreEqual (origUVElementArray.GetAt (i), importUVElementArray.GetAt (i)); + } + + var origUVElementIndex = origUVElement.GetIndexArray (); + var importUVElementIndex = origUVElement.GetIndexArray (); + + Assert.AreEqual (origUVElementIndex.GetCount (), importUVElementIndex.GetCount ()); + + for (int i = 0; i < origUVElementIndex.GetCount (); i++) { + Assert.AreEqual (origUVElementIndex.GetAt (i), importUVElementIndex.GetAt (i)); + } + + // Check material and texture + var origNode = origScene.GetRootNode().GetChild(0); + int origMatIndex = origNode.GetMaterialIndex (m_materialName); + Assert.GreaterOrEqual (origMatIndex, 0); + var origMaterial = origNode.GetMaterial(origMatIndex); + Assert.IsNotNull (origMaterial); + + var importNode = scene.GetRootNode().GetChild(0); + int importMatIndex = importNode.GetMaterialIndex (m_materialName); + Assert.GreaterOrEqual (importMatIndex, 0); + var importMaterial = importNode.GetMaterial (importMatIndex); + Assert.IsNotNull (importMaterial); + + // TODO: Add ability to Downcast the material to an FbxSurfacePhong. + Property[] materialProperties = { + new Property (FbxSurfaceMaterial.sDiffuse, PropertyType.Color), + new Property (FbxSurfaceMaterial.sEmissive, PropertyType.Color), + new Property (FbxSurfaceMaterial.sAmbient, PropertyType.Double3), + new Property (FbxSurfaceMaterial.sSpecular, PropertyType.Double3), + new Property (FbxSurfaceMaterial.sBumpFactor, PropertyType.Double) + }; + + FbxProperty origMaterialDiffuseProperty = null; + FbxProperty importMaterialDiffuseProperty = null; + + foreach (var prop in materialProperties) { + FbxProperty origProp = origMaterial.FindProperty (prop.name); + Assert.IsNotNull (origProp); + Assert.IsTrue (origProp.IsValid ()); + + FbxProperty importProp = importMaterial.FindProperty (prop.name); + Assert.IsNotNull (importProp); + Assert.IsTrue (importProp.IsValid ()); + + switch (prop.type){ + case PropertyType.Color: + Assert.AreEqual (origProp.GetFbxColor(), importProp.GetFbxColor()); + break; + case PropertyType.Double3: + Assert.AreEqual (origProp.GetFbxDouble3(), importProp.GetFbxDouble3()); + break; + case PropertyType.Double: + Assert.AreEqual (origProp.GetDouble(), importProp.GetDouble()); + break; + default: + break; + } + + if(prop.name.Equals(FbxSurfaceMaterial.sDiffuse)){ + origMaterialDiffuseProperty = origProp; + importMaterialDiffuseProperty = importProp; + } + } + + Assert.IsNotNull (origMaterialDiffuseProperty); + Assert.IsNotNull (importMaterialDiffuseProperty); + + var origTexture = origMaterialDiffuseProperty.FindSrcObject (FbxSurfaceMaterial.sDiffuse + "_Texture"); + Assert.IsNotNull (origTexture); + var importTexture = importMaterialDiffuseProperty.FindSrcObject (FbxSurfaceMaterial.sDiffuse + "_Texture"); + Assert.IsNotNull (importTexture); + + // TODO: Trying to Downcast the texture to an FbxFileTexture returns a null value, + // need to figure out how to fix this so we can access the texture properties. + /*Assert.AreEqual (origTexture.GetFileName (), importTexture.GetFileName ()); + Assert.AreEqual (origTexture.GetTextureUse (), importTexture.GetTextureUse ()); + Assert.AreEqual (origTexture.GetMappingType (), importTexture.GetMappingType ());*/ + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/StaticMeshExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/StaticMeshExportTest.cs.meta new file mode 100644 index 0000000000..85b0f715b0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/StaticMeshExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3730ed2ac18174a5cb97d9f5c2b583c7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/TransformExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/TransformExportTest.cs new file mode 100644 index 0000000000..467fe8868f --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/TransformExportTest.cs @@ -0,0 +1,166 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class TransformExportTest : RoundTripTestBase + { + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__transform_export_test_"; + base.Init (); + } + + // Export GameObject as standard marker + protected FbxNull ExportNull (FbxScene fbxScene) + { + // create the marker structure. + FbxNull fbxNull = FbxNull.Create (fbxScene, "Null"); + + fbxNull.Look.Set (FbxNull.ELook.eCross); + fbxNull.Size.Set (1.0f); + + return fbxNull; + } + + protected override FbxScene CreateScene (FbxManager manager) + { + FbxScene scene = FbxScene.Create (manager, "myScene"); + + // Create the following node hierarchy with transforms: + // Root + // (t: 0,10,4) + // (r: 0,0,0) + // (s: 1,1,1) + // / \ + // child0 child1 + // (t: 1,1,1) (t: 0,0,0) + // (r: 0,0,90) (r: 180,5,0) + // (s: 2,2,2) (s: 3,2,1) + // | + // child2 + // (t: 5,6,20) + // (r: 0,10,0) + // (s: 1,0.5,1) + + FbxNode root = FbxNode.Create (scene, "Root"); + root.SetNodeAttribute (ExportNull (scene)); + root.SetShadingMode (FbxNode.EShadingMode.eWireFrame); + + // Set the transform values + root.LclTranslation.Set(new FbxDouble3(0,10,4)); + root.LclRotation.Set(new FbxDouble3(0,0,0)); + root.LclScaling.Set(new FbxDouble3(1,1,1)); + + // Set the pre/post rotation, pivots and offsets + // NOTE: For some reason when using PreRotation.Set() instead of SetPreRotation(), + // the PreRotation does not get imported properly. Same is true for the other properties. + // Also only works if EPivot set is SourcePivot. + // TODO: figure out why the other ways don't work. + root.SetPreRotation(FbxNode.EPivotSet.eSourcePivot, new FbxVector4(30, 10, 45)); + root.SetPostRotation (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (9, 10, 5)); + root.SetRotationPivot (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (5, 6, 7)); + root.SetScalingPivot (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (1, 2, 1)); + root.SetRotationOffset (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (0.6, 8, 0.3)); + root.SetScalingOffset (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (10, 4, 3)); + + FbxNode[] children = new FbxNode[3]; + FbxDouble3[][] transforms = { + new FbxDouble3[]{new FbxDouble3(1,1,1), new FbxDouble3(0,0,90), new FbxDouble3(2,2,2)}, + new FbxDouble3[]{new FbxDouble3(0,0,0), new FbxDouble3(180,5,0), new FbxDouble3(3,2,1)}, + new FbxDouble3[]{new FbxDouble3(5,6,20), new FbxDouble3(0,10,0), new FbxDouble3(1,0.5,1)} + }; + + for (int i = 0; i < children.Length; i++) { + children [i] = FbxNode.Create (scene, "Child" + i); + + // set the fbxNode's node attribute + children[i].SetNodeAttribute (ExportNull (scene)); + children[i].SetShadingMode (FbxNode.EShadingMode.eWireFrame); + + // set the transform + children [i].LclTranslation.Set (transforms [i] [0]); + children [i].LclRotation.Set (transforms [i] [1]); + children [i].LclScaling.Set (transforms [i] [2]); + + // set some values to check against later (doesn't really matter what the values are) + children [i].SetPreRotation(FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (i, i*2, i%3)); + children [i].SetPostRotation (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (i-1, i+5, i)); + children [i].SetRotationPivot (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (i/2, i, i+3)); + children [i].SetScalingPivot (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (i*5, i-1, i/4)); + children [i].SetRotationOffset (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (0.6*i, 8, i/2.0f)); + children [i].SetScalingOffset (FbxNode.EPivotSet.eSourcePivot, new FbxVector4 (i, i, i)); + } + + // Create the hierarchy + scene.GetRootNode ().AddChild (root); + root.AddChild (children [0]); + root.AddChild (children [1]); + children [1].AddChild (children [2]); + + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + FbxScene origScene = CreateScene (FbxManager); + + // Compare the hierarchy and transforms of the two scenes + FbxNode origRoot = origScene.GetRootNode(); + FbxNode importRoot = scene.GetRootNode (); + + CheckSceneHelper (origRoot, importRoot); + } + + // compare the hierarchy and transform of two nodes + private void CheckSceneHelper(FbxNode node1, FbxNode node2) + { + if (node1 == null && node2 == null) { + return; + } + + Assert.IsNotNull (node1); + Assert.IsNotNull (node2); + + Assert.AreEqual (node1.GetChildCount (), node2.GetChildCount ()); + + // compare the transforms + Assert.AreEqual (node1.LclTranslation.Get(), node2.LclTranslation.Get()); + Assert.AreEqual (node1.LclRotation.Get(), node2.LclRotation.Get()); + Assert.AreEqual (node1.LclScaling.Get(), node2.LclScaling.Get()); + + Assert.AreEqual (node1.GetPreRotation (FbxNode.EPivotSet.eSourcePivot), + node2.GetPreRotation (FbxNode.EPivotSet.eSourcePivot)); + + Assert.AreEqual (node1.GetPostRotation(FbxNode.EPivotSet.eSourcePivot), + node2.GetPostRotation(FbxNode.EPivotSet.eSourcePivot)); + + Assert.AreEqual (node1.GetRotationPivot(FbxNode.EPivotSet.eSourcePivot), + node2.GetRotationPivot(FbxNode.EPivotSet.eSourcePivot)); + + Assert.AreEqual (node1.GetScalingPivot(FbxNode.EPivotSet.eSourcePivot), + node2.GetScalingPivot(FbxNode.EPivotSet.eSourcePivot)); + + Assert.AreEqual (node1.GetRotationOffset(FbxNode.EPivotSet.eSourcePivot), + node2.GetRotationOffset(FbxNode.EPivotSet.eSourcePivot)); + + Assert.AreEqual (node1.GetScalingOffset(FbxNode.EPivotSet.eSourcePivot), + node2.GetScalingOffset(FbxNode.EPivotSet.eSourcePivot)); + + Assert.AreEqual (node1.GetName (), node2.GetName ()); + + for (int i = 0; i < node1.GetChildCount (); i++) { + // recurse through the hierarchy + CheckSceneHelper (node1.GetChild (i), node2.GetChild (i)); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/TransformExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/TransformExportTest.cs.meta new file mode 100644 index 0000000000..e92ec74cd9 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/TransformExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2b417c7cdc02647b8a54d1c74c8636fb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/VisibilityExportTest.cs b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/VisibilityExportTest.cs new file mode 100644 index 0000000000..0ef7dd69db --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/VisibilityExportTest.cs @@ -0,0 +1,93 @@ +// *********************************************************************** +// Copyright (c) 2017 Unity Technologies. All rights reserved. +// +// Licensed under the ##LICENSENAME##. +// See LICENSE.md file in the project root for full license information. +// *********************************************************************** +using NUnit.Framework; +using System.Collections; +using Autodesk.Fbx; + +namespace Autodesk.Fbx.UseCaseTests +{ + internal class VisibilityExportTest : RoundTripTestBase + { + [SetUp] + public override void Init () + { + fileNamePrefix = "_safe_to_delete__visibility_export_test"; + base.Init (); + } + + protected override FbxScene CreateScene (FbxManager manager) + { + // create the following node hierarchy to test: + // Root + // / \ + // Child0 Child1 + // | + // Child2 + // / | \ + // Child3 Child4 Child5 + FbxScene scene = FbxScene.Create (manager, "myScene"); + + FbxNode root = FbxNode.Create (scene, "Root"); + + // set the root invisible + root.SetVisibility(false); + + // don't let children inherit visibility of invisible root node + root.VisibilityInheritance.Set(false); + + FbxNode[] children = new FbxNode[6]; + for (int i = 0; i < children.Length; i++) { + children [i] = FbxNode.Create (scene, "Child" + i); + // set even nodes visible, and odd nodes invisible + children [i].SetVisibility (i%2 == 0); + } + + scene.GetRootNode ().AddChild (root); + root.AddChild (children [0]); + root.AddChild (children [1]); + children [1].AddChild (children [2]); + children [2].AddChild (children [3]); + children [2].AddChild (children [4]); + children [2].AddChild (children [5]); + + return scene; + } + + protected override void CheckScene (FbxScene scene) + { + FbxScene origScene = CreateScene (FbxManager); + + // Compare the hierarchy of the two scenes + FbxNode origRoot = origScene.GetRootNode(); + FbxNode importRoot = scene.GetRootNode (); + + CheckSceneHelper (origRoot, importRoot); + } + + // compare the hierarchy of two nodes + private void CheckSceneHelper(FbxNode node1, FbxNode node2) + { + if (node1 == null && node2 == null) { + return; + } + + Assert.IsNotNull (node1); + Assert.IsNotNull (node2); + + Assert.AreEqual (node1.GetChildCount (), node2.GetChildCount ()); + Assert.AreEqual (node1.GetName (), node2.GetName ()); + + Assert.AreEqual (node1.GetVisibility (), node2.GetVisibility ()); + Assert.AreEqual (node1.VisibilityInheritance.Get (), node2.VisibilityInheritance.Get ()); + + for (int i = 0; i < node1.GetChildCount (); i++) { + // recurse through the hierarchy + CheckSceneHelper (node1.GetChild (i), node2.GetChild (i)); + } + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/VisibilityExportTest.cs.meta b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/VisibilityExportTest.cs.meta new file mode 100644 index 0000000000..2bddf52d01 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Editor/UseCaseTests/VisibilityExportTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6297860ba0136467e9550d467d4f469e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-win-x64.exe b/Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-win-x64.exe new file mode 100644 index 0000000000..8d97914caa Binary files /dev/null and b/Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-win-x64.exe differ diff --git a/Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-win-x64.exe.meta b/Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-win-x64.exe.meta new file mode 100644 index 0000000000..1eaf24b375 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/PerformanceBenchmarks-win-x64.exe.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2895c5ce91e6745638ad5abc844b6853 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Runtime.meta b/Packages/com.autodesk.fbx/Tests/Runtime.meta new file mode 100644 index 0000000000..552f389026 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Runtime.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8e42e7ff45547f84791b125fc6c6b24f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets.meta b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets.meta new file mode 100644 index 0000000000..abe0f4cd5e --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4f53c5f35bccbb740b1d056c60d15f9e +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/BuildTestScene.unity b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/BuildTestScene.unity new file mode 100644 index 0000000000..18d2d123c1 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/BuildTestScene.unity @@ -0,0 +1,401 @@ +%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.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 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 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + 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: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + 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_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +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.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &87680441 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 87680445} + - component: {fileID: 87680444} + - component: {fileID: 87680443} + - component: {fileID: 87680442} + - component: {fileID: 87680446} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!65 &87680442 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 87680441} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &87680443 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 87680441} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, 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: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &87680444 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 87680441} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &87680445 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 87680441} + 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_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &87680446 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 87680441} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8adf4be3128bc2247a531860bb74442d, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &946254489 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 946254491} + - component: {fileID: 946254490} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!108 &946254490 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 946254489} + m_Enabled: 1 + serializedVersion: 9 + m_Type: 1 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!4 &946254491 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 946254489} + 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_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!1 &2077095808 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2077095811} + - component: {fileID: 2077095810} + - component: {fileID: 2077095809} + 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 &2077095809 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2077095808} + m_Enabled: 1 +--- !u!20 &2077095810 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2077095808} + 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_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: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &2077095811 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2077095808} + 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_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/BuildTestScene.unity.meta b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/BuildTestScene.unity.meta new file mode 100644 index 0000000000..1a60530734 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/BuildTestScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 20a588fa79797e944baae5de2e674b61 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/ExportEmptyFbx.cs b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/ExportEmptyFbx.cs new file mode 100644 index 0000000000..43ced7e350 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/ExportEmptyFbx.cs @@ -0,0 +1,72 @@ +using UnityEngine; +using System.IO; + +namespace Autodesk.Fbx.BuildTests +{ + internal class ExportEmptyFbx : MonoBehaviour + { + // Start is called before the first frame update + void Start() + { +#if FBXSDK_RUNTIME + // Build the fbx scene file path + // (player/player_data/emptySceneFromRuntime.fbx) + string fbxFilePath = Application.dataPath; + fbxFilePath = Path.Combine(fbxFilePath, "emptySceneFromRuntimeBuild.fbx"); + fbxFilePath = Path.GetFullPath(fbxFilePath); + + Debug.Log(string.Format("The file that will be written is {0}", fbxFilePath)); + + using (var fbxManager = FbxManager.Create()) + { + FbxIOSettings fbxIOSettings = FbxIOSettings.Create(fbxManager, Globals.IOSROOT); + + // Configure the IO settings. + fbxManager.SetIOSettings(fbxIOSettings); + + // Create the exporter + var fbxExporter = FbxExporter.Create(fbxManager, "Exporter"); + + // Initialize the exporter. + int fileFormat = fbxManager.GetIOPluginRegistry().FindWriterIDByDescription("FBX ascii (*.fbx)"); + + bool status = fbxExporter.Initialize(fbxFilePath, fileFormat, fbxIOSettings); + // Check that initialization of the fbxExporter was successful + if (!status) + { + Debug.LogError(string.Format("failed to initialize exporter, reason: {0}", + fbxExporter.GetStatus().GetErrorString())); + return; + } + + // Create a scene + var fbxScene = FbxScene.Create(fbxManager, "Scene"); + + // create scene info + FbxDocumentInfo fbxSceneInfo = FbxDocumentInfo.Create(fbxManager, "SceneInfo"); + + // set some scene info values + fbxSceneInfo.mTitle = "fromRuntime"; + fbxSceneInfo.mSubject = "Exported from a Unity runtime"; + fbxSceneInfo.mAuthor = "Unity Technologies"; + fbxSceneInfo.mRevision = "1.0"; + fbxSceneInfo.mKeywords = "export runtime"; + fbxSceneInfo.mComment = "This is to demonstrate the capability of exporting from a Unity runtime, using the FBX SDK C# bindings"; + + fbxScene.SetSceneInfo(fbxSceneInfo); + + // Export the scene to the file. + status = fbxExporter.Export(fbxScene); + + // cleanup + fbxScene.Destroy(); + fbxExporter.Destroy(); + } +#endif + + // Immediately close the standalone application after + // exporting the FBX + Application.Quit(); + } + } +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/ExportEmptyFbx.cs.meta b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/ExportEmptyFbx.cs.meta new file mode 100644 index 0000000000..e193666760 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/ExportEmptyFbx.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8adf4be3128bc2247a531860bb74442d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/FbxBuildTestAssets.asmdef b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/FbxBuildTestAssets.asmdef new file mode 100644 index 0000000000..c1880e90ff --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/FbxBuildTestAssets.asmdef @@ -0,0 +1,22 @@ +{ + "name": "FbxBuildTestAssets", + "references": [ + "Autodesk.Fbx", + "UnityEngine.TestRunner", + "UnityEditor.TestRunner" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": true, + "precompiledReferences": [ + "nunit.framework.dll" + ], + "defineConstraints": [ + "!UNITY_EDITOR_LINUX" + ], + "autoReferenced": false, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/FbxBuildTestAssets.asmdef.meta b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/FbxBuildTestAssets.asmdef.meta new file mode 100644 index 0000000000..1889cbf27b --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/Runtime/BuildTestsAssets/FbxBuildTestAssets.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 287e0e497d3fea248bf8598ba282a102 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Tests/vector_test.txt b/Packages/com.autodesk.fbx/Tests/vector_test.txt new file mode 100644 index 0000000000..63b6b768ba --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/vector_test.txt @@ -0,0 +1,31 @@ +FbxVector4:a:6.71089e+07/0x4190000004000000,6.71089e+07/0x4190000008000000,6.71089e+07/0x419000000c000000,0.25/0x3fd0000000000000 +FbxVector4:b:5/0x4014000000000000,6/0x4018000000000000,7/0x401c000000000000,1/0x3ff0000000000000 +FbxVector4:-a:-6.71089e+07/0xc190000004000000,-6.71089e+07/0xc190000008000000,-6.71089e+07/0xc19000000c000000,-0.25/0xbfd0000000000000 +FbxVector4:a + 2:6.71089e+07/0x419000000c000000,6.71089e+07/0x4190000010000000,6.71089e+07/0x4190000014000000,2.25/0x4002000000000000 +FbxVector4:a - 2:6.71089e+07/0x418ffffff8000000,6.71089e+07/0x4190000000000000,6.71089e+07/0x4190000004000000,-1.75/0xbffc000000000000 +FbxVector4:a * 2:1.34218e+08/0x41a0000004000000,1.34218e+08/0x41a0000008000000,1.34218e+08/0x41a000000c000000,0.5/0x3fe0000000000000 +FbxVector4:a / 2:3.35544e+07/0x4180000004000000,3.35544e+07/0x4180000008000000,3.35544e+07/0x418000000c000000,0.125/0x3fc0000000000000 +FbxVector4:a + b:6.71089e+07/0x4190000018000000,6.71089e+07/0x4190000020000000,6.71089e+07/0x4190000028000000,1.25/0x3ff4000000000000 +FbxVector4:a - b:6.71089e+07/0x418fffffe0000000,6.71089e+07/0x418fffffe0000000,6.71089e+07/0x418fffffe0000000,-0.75/0xbfe8000000000000 +FbxVector4:a * b:3.35544e+08/0x41b4000005000000,4.02653e+08/0x41b800000c000000,4.69762e+08/0x41bc000015000000,0.25/0x3fd0000000000000 +FbxVector4:a / b:1.34218e+07/0x41699999a0000000,1.11848e+07/0x4165555560000000,9.58698e+06/0x41624924a0000000,0.25/0x3fd0000000000000 +FbxVector4:a.DotProduct(b):1.20796e+09/0x41d2000009800000 +FbxVector4:a.Length():1.16236e+08/0x419bb67af6338a1f +FbxVector4:a.SquareLength():1.35108e+16/0x4348000018000006 +FbxVector4:a.Distance(b):1.16236e+08/0x419bb67acca1d1c2 +FbxVector4:a.CrossProduct(b):6.71089e+07/0x418fffffe0000000,-1.34218e+08/0xc19fffffe0000000,6.71089e+07/0x418fffffe0000000,1/0x3ff0000000000000 +FbxVector2:a:6.71089e+07/0x4190000004000000,6.71089e+07/0x4190000008000000 +FbxVector2:b:5/0x4014000000000000,6/0x4018000000000000 +FbxVector2:-a:-6.71089e+07/0xc190000004000000,-6.71089e+07/0xc190000008000000 +FbxVector2:a + 2:6.71089e+07/0x419000000c000000,6.71089e+07/0x4190000010000000 +FbxVector2:a - 2:6.71089e+07/0x418ffffff8000000,6.71089e+07/0x4190000000000000 +FbxVector2:a * 2:1.34218e+08/0x41a0000004000000,1.34218e+08/0x41a0000008000000 +FbxVector2:a / 2:3.35544e+07/0x4180000004000000,3.35544e+07/0x4180000008000000 +FbxVector2:a + b:6.71089e+07/0x4190000018000000,6.71089e+07/0x4190000020000000 +FbxVector2:a - b:6.71089e+07/0x418fffffe0000000,6.71089e+07/0x418fffffe0000000 +FbxVector2:a * b:3.35544e+08/0x41b4000005000000,4.02653e+08/0x41b800000c000000 +FbxVector2:a / b:1.34218e+07/0x41699999a0000000,1.11848e+07/0x4165555560000000 +FbxVector2:a.DotProduct(b):7.38198e+08/0x41c6000008800000 +FbxVector2:a.Length():9.49063e+07/0x4196a09e6efb7733 +FbxVector2:a.SquareLength():9.0072e+15/0x434000000c000002 +FbxVector2:a.Distance(b):9.49063e+07/0x4196a09e4fde9d66 diff --git a/Packages/com.autodesk.fbx/Tests/vector_test.txt.meta b/Packages/com.autodesk.fbx/Tests/vector_test.txt.meta new file mode 100644 index 0000000000..2cb44c1dd0 --- /dev/null +++ b/Packages/com.autodesk.fbx/Tests/vector_test.txt.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a33334ff2abfc41849e740aea6e8aee0 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/Third Party Notices.md b/Packages/com.autodesk.fbx/Third Party Notices.md new file mode 100644 index 0000000000..41631ea286 --- /dev/null +++ b/Packages/com.autodesk.fbx/Third Party Notices.md @@ -0,0 +1,1719 @@ +This package contains third-party software components governed by the license(s) indicated below: +--------- + +Component Name: Autodesk FBX SDK +License Type: FBX SDK License and Service Agreement +Copyright (c) 2020 Autodesk, Inc. All rights reserved. + +Use of the FBX SDK requires agreeing to and complying with the FBX SDK License and Service Agreement terms accessed at and copied below: + +**Autodesk** + +**LICENSE AND SERVICES AGREEMENT** + +**Autodesk® FBX® SDK 2020** + +**READ CAREFULLY:** AUTODESK LICENSES THE SOFTWARE AND OTHER LICENSED +MATERIALS ONLY ON THE CONDITION THAT LICENSEE ACCEPTS ALL OF THE TERMS +CONTAINED OR REFERENCED IN THIS AGREEMENT. + +By selecting the “I accept” button or other button or mechanism designed +to acknowledge agreement to the terms of an electronic copy of this +Agreement, or by installing, downloading, accessing, or otherwise +copying or using all or any portion of the Autodesk Materials, (i) you +accept this Agreement on behalf of the entity for which you are +authorized to act (e.g., an employer) and acknowledge that such entity +is legally bound by this Agreement (and you agree to act in a manner +consistent with this Agreement) or, if there is no such entity for which +you are authorized to act, you accept this Agreement on behalf of +yourself as an individual and acknowledge that you are legally bound by +this Agreement, and (ii) you represent and warrant that you have the +right, power and authority to act on behalf of and bind such entity (if +any) or yourself. You may not accept this Agreement on behalf of another +entity unless you are an employee or other agent of such other entity +with the right, power and authority to act on behalf of such other +entity. + +If Licensee is unwilling to accept this Agreement, or you do not have +the right, power and authority to act on behalf of and bind such entity +or yourself as an individual (if there is no such entity), (a) DO NOT +SELECT THE “I ACCEPT” BUTTON OR OTHERWISE CLICK ON ANY BUTTON OR OTHER +MECHANISM DESIGNED TO ACKNOWLEDGE AGREEMENT, AND DO NOT INSTALL, +DOWNLOAD, ACCESS, OR OTHERWISE COPY OR USE ALL OR ANY PORTION OF THE +AUTODESK MATERIALS; AND (b) WITHIN THIRTY (30) DAYS FROM THE DATE OF +ACQUIRING THE AUTODESK MATERIALS, LICENSEE MAY RETURN THE AUTODESK +MATERIALS (INCLUDING ANY COPIES) TO THE ENTITY FROM WHICH THEY WERE +ACQUIRED FOR A REFUND OF THE APPLICABLE LICENSE FEES PAID BY THE +LICENSEE. + +The words “Autodesk", “Agreement” and “Licensee” and other capitalized +terms used in this Agreement are defined terms. The definitions can be +found in Exhibit A (if the terms are not defined in the main body of the +Agreement). + +1\. **License** + +1.1 License Grant. Subject to and +conditioned on Licensee’s continuous compliance with this Agreement, +Autodesk grants Licensee a nonexclusive, nonsublicensable, +nontransferable, limited license to Install and Access the Licensed SDK +and User Documentation, in each case solely (a) in the Territory, (b) +within the scope of the License Type and Permitted Number specified in +the applicable License Identification, and (c) in accordance with the +other terms of this Agreement, to: + +1.1.1       (a)    use the SDK for development, research, internal, +educational, or commercial purposes: + +(i) to create a software product with the capability to read and/or +write and/or translate Licensee files, which software product links to +the Library (“Developed Software”); and/or + +(ii) to modify the Sample Code(s) solely to create an object code +version(s) (“Modified Code(s)”); and/or + +(b)     reproduce the Library to link to the Developed Software. + +1.1.2      (a)     incorporate the executable version of the Developed +Software into; and/or + +(b)     incorporate the Modified Code(s) into; and/or + +(c)     link the Library, in binary code form to; + +software products developed by Licensee (“Licensee Product(s)”) for +Licensee’s Internal Business Needs. + +1.1.3   reproduce, distribute and sublicense free of charge or for a +fee Licensee Product(s) provided that Licensee must sublicense the +Software, the Developed Software, the Library, the Sample Code(s) and +the Modified Code(s) “as is”, without warranty of any kind. + +Various License Types are described in Exhibit B. In any case where +the License Identification does not specify a License Type or +Permitted Number or Territory, or there is no License Identification, +the License Type will, by default, be the Stand-alone (Individual) +License and the Territory will be worldwide, subject to the Export +Control requirements herein. + +1.1.4       Licensee shall reproduce and apply any copyright or other +proprietary rights notices included on or embedded in the Software, or +any part thereof, to any copies of the Software or any part thereof, +or to the Developed Software, in any form. + +1.1.5       Licensee shall place the following statement in the +copyright area of either: (i) the end-user License and/or terms of use +for the Developed Software; or (ii) the ‘About Box’ or similar notice +page of the Developed Software; and Licensee shall also include the +following statement in the copyright area of either: (a) the on-line +documentation regarding the Developed Software; or (b) any other +document related to Developed Software that contains copyright +information: + +“This software contains Autodesk® FBX® code developed by Autodesk, +Inc. Copyright 2019 Autodesk, Inc. All rights, reserved. Such code is +provided “as is” and Autodesk, Inc. disclaims any and all warranties, +whether express or implied, including without limitation the implied +warranties of merchantability, fitness for a particular purpose or +non-infringement of third party rights. In no event shall Autodesk, +Inc. be liable for any direct, indirect, incidental, special, +exemplary, or consequential damages (including, but not limited to, +procurement of substitute goods or services; loss of use, data, or +profits; or business interruption) 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 such code.” + +1.2 Upgrades and Previous Versions. + +1.2.1 Effect of Upgrades. If Autodesk or +a Reseller provides Licensee with an Upgrade to other Licensed Materials +previously licensed to Licensee, the Licensed Materials previously +licensed to Licensee and any other Autodesk Materials relating thereto +will thereafter be deemed to be a “Previous Version.” Except as set +forth in Section 1.2.2 (Exception for Relationship Program Licensees), +the license grant and other rights with respect to any Previous Version +will terminate one hundred twenty (120) days after Installation of the +Upgrade. Within such one hundred twenty (120) day period, except as set +forth in Section 1.2.2 (Exception for Relationship Program Licensees), +(a) Licensee must cease all use of any Previous Version and Uninstall +all copies of the Previous Version, and (b) upon expiration of such +period, such Previous Version will no longer constitute Licensed +Materials but rather will be deemed to be Excluded Materials and +Licensee will no longer have a license for any such Previous Version. At +Autodesk’s request, Licensee agrees to destroy or return to Autodesk or +the Reseller from which they were acquired all copies of the Previous +Version. Autodesk reserves the right to require Licensee to show +satisfactory proof that all copies of any Previous Version have been +Uninstalled and, if so requested by Autodesk, destroyed or returned to +Autodesk or the Reseller from which they were acquired. + +1.2.2 Exception for Relationship Program +Licensees. The termination of rights as to Previous Versions +described in Section 1.2.1 (Effect of Upgrades) may not apply to +Licensee if and to the extent (a) Licensee participates in a +Relationship Program and the Relationship Program Terms authorize +Licensee to retain such Previous Versions or (b) otherwise authorized in +writing by Autodesk. + +1.3 Additional Terms. The Licensed +Materials (or portions thereof) may be subject to terms (e.g., terms +accompanying such Licensed Materials or made available in connection +with ordering, installing, downloading, accessing, using or copying such +Licensed Materials) that are in addition to or different from the terms +set forth in this Agreement, and Licensee agrees to comply with such +terms. + +1.4 Other Materials. If Autodesk provides +or makes available to Licensee any additional materials associated with +the Licensed Materials, including any corrections, patches, service +packs, updates or upgrades to, or new versions of, the Licensed +Materials (including Upgrades) or any Supplemental Materials or User +Documentation for the Licensed Materials, (a) such additional materials +may include or be subject to other terms in addition to or different +from the terms set forth in this Agreement (including, without +limitation, additional or different fees, license terms, or restrictions +on use), and Licensee agrees to comply with such terms, or (b) if there +are no other terms for such additional materials, they will (except as +otherwise provided by Section 1.2 (Upgrades and Previous Versions)) be +subject to the same terms (including, without limitation, the licenses, +applicable License Type and Permitted Number, and other terms of this +Agreement) as the Licensed Materials to which such additional materials +apply. In no event will the foregoing result in any rights with respect +to Excluded Materials. + +1.5 Authorized Users. Licensee may permit +the Licensed Materials to be Installed and/or Accessed only by +Licensee’s Personnel (except as otherwise designated in the applicable +License Type), and any such Installation or Access will be subject to +any other requirements imposed by this Agreement and the applicable +License Type and Permitted Number. Licensee will be responsible for +compliance with this Agreement by Licensee’s Personnel and any other +persons who may have Access to the Autodesk Materials through Licensee +(whether or not such Access is authorized by Autodesk or within the +scope of the applicable License Type and Permitted Number). + +1.6 Third-Party Licensed Materials. The +Autodesk Materials may contain or be accompanied by third-party +software, data or other materials that are subject to and provided in +accordance with terms that are in addition to or different from the +terms set forth in this Agreement. Such terms may be included or +referenced in or with such third-party software, data or other materials +(e.g., in the “About box”) or a web page specified by Autodesk (the URL +for which may be obtained on Autodesk’s website or on request to +Autodesk). Licensee agrees to comply with such terms. In addition, +Licensee will take sole responsibility for obtaining and complying with +any licenses that may be necessary to use third-party software, data or +other materials that Licensee uses or obtains for use in conjunction +with the Licensed Materials. Licensee acknowledges and agrees that +Autodesk has no responsibility for, and makes no representations or +warranties regarding, such third-party software, data or other materials +or Licensee’s use of such third-party software, data or other materials. + +1.7 Relationship Programs. Autodesk may +offer to Licensee, and (if so) Licensee may participate in one (1) or +more Relationship Programs applicable to the Licensed Materials licensed +to Licensee under this Agreement (and such Relationship Programs may +include rights in addition to or different from those set forth in this +Agreement). Any Relationship Programs are subject to Autodesk’s terms +therefor, which terms are set forth in the applicable Relationship +Program Terms. Licensee agrees that if it requests, accepts, or makes +use of any Relationship Program, Licensee will be bound by such terms, +as they may be modified from time to time in accordance with the +applicable Relationship Program Terms (and such terms, as so modified +from time to time, are a part of and incorporated by reference into this +Agreement), and Licensee agrees to comply with such terms. Licensee +acknowledges that Autodesk may require a further acceptance of such +terms as a condition to participation in a Relationship Program. + +1.8 Services. Autodesk may provide, and +Licensee may elect to receive or benefit from, certain Services from +time to time. Any Services are subject to Autodesk’s terms therefor, +which terms are set forth in the applicable Services Terms. Licensee +agrees that if it requests, accepts, or makes use of any Services, +Licensee will be bound by such terms, as they may be modified from time +to time in accordance with the applicable Services Terms (and such +terms, as so modified from time to time, are a part of and incorporated +by reference into this Agreement), and Licensee agrees to comply with +such terms. Licensee acknowledges that Autodesk may require a further +acceptance of such terms as a condition to providing Services. + +1.9 Archival Copy. Licensee’s license +under Section 1.1 (License Grant) includes the right to make a single +archival copy of the Licensed Materials in the Territory, provided that +(a) the single-copy limitation will not apply to copies made as an +incidental part of a routine backup of Licensee’s entire computer system +on which the Licensed Materials are Installed in accordance with this +Agreement, where such backup includes the making of copies of +substantially all other software on such computer system and (b) any +archival copy may be Accessed or Installed (other than on a backup +storage medium from which the Licensed Materials cannot be Accessed) +only when and for so long as the primary copy of the Licensed Materials +is inaccessible and inoperable. Copies of the Licensed Materials that +are Installed and are in excess of the Permitted Number at any time +while the primary copy of the Licensed Materials is also Accessible are +not "archival copies" as permitted under this Section 1.9 (Archival +Copy). + +1.10 Nature of Licenses. Licensee +acknowledges and agrees that when Licensee acquires a license of +Licensed Materials, (including through a Relationship Program or +Services), Licensee’s acquisition is neither contingent on the delivery +of any future features or functionality nor subject to any public or +other comments (oral, written or otherwise) made by Autodesk regarding +future features or functionality. + +1.11 **Feedback**. + +Licensee hereby grants Autodesk, under all of Licensee’s intellectual +property and proprietary rights, the following worldwide, exclusive, +transferable, perpetual, irrevocable, royalty-free, fully paid-up +rights: (1) to make, have made, use, copy, modify, and create derivative +works of the Feedback as part of or in connection with any Autodesk +product, technology, service, content, material, specification or +documentation (including without limitation in connection with the +marketing or sale thereof); (2) to publicly perform or display, import, +broadcast, transmit, distribute, license, offer to sell and sell, rent, +lease or lend copies of the Feedback (and derivative works thereof and +improvements thereon); and (3) to sublicense to third parties the +foregoing rights, including the right to sublicense to further third +parties. “Feedback” shall mean all +suggestions, comments, input, ideas, reports, information or know-how +(whether in oral or written form) provided by Licensee to Autodesk or an +Autodesk affiliate in connection with Licensee’s evaluation of or use of +the Licensed Materials. Feedback does not include any artwork or sample +content created by Licensee using the Licensed Materials. + +2\. **License Limitations; Prohibitions** + +2.1 Limitations and Exclusions. + +2.1.1 No License Granted; Unauthorized +Activities. The parties acknowledge and agree that, +notwithstanding anything to the contrary in this Agreement, no license +is granted (whether expressly, by implication or otherwise) under this +Agreement (and this Agreement expressly excludes any right) (a) to +Excluded Materials, (b) to any Autodesk Materials that Licensee did not +acquire lawfully or that Licensee acquired in violation of or in a +manner inconsistent with this Agreement, (c) for Installation of or +Access to the Licensed Materials beyond the applicable license term +(whether a fixed term or Relationship Program period or term) or outside +the scope of the applicable License Type or Permitted Number, (d) for +Installation of the Licensed Materials on any Computer other than a +Computer owned or leased, and controlled, by Licensee, unless otherwise +authorized in writing by Autodesk, (e) to distribute, rent, loan, lease, +sell, sublicense, transfer or otherwise provide all or any portion of +the Autodesk Materials to any person or entity except as expressly set +forth in this Agreement or as expressly authorized in writing by +Autodesk, (f) to provide or make available any features or functionality +of the Autodesk Materials to any person or entity (other than to and for +Licensee itself for the purpose specified in the applicable License +Type), whether or not over a network and whether or not on a hosted +basis, (g) except as otherwise expressly provided with respect to a +specific License Type, to Install or Access or allow the Installation of +or Access to the Autodesk Materials over the Internet or other non-local +network, including, without limitation, use in connection with a wide +area network (WAN), virtual private network (VPN), virtualization, Web +hosting, time-sharing, service bureau, software as a service, cloud or +other service or technology, (h) to remove, alter or obscure any +proprietary notices, labels or marks in the Autodesk Materials, (i) to +decompile, disassemble or otherwise reverse engineer the Autodesk +Materials, or (j) to translate, adapt, arrange, or create derivative +works based on, or otherwise modify the Autodesk Materials for any +purpose. + +2.1.2 Licensed Materials as a Single +Product. The Licensed Materials are licensed to Licensee as a +single product and the applicable components may not be separated for +Installation or Access (and all such components must be Installed and +Accessed on the same Computer except as authorized in writing by +Autodesk). + +2.1.3 Territory. Except as otherwise +authorized in writing by Autodesk, the licenses granted in this +Agreement are granted only for the Territory. Nothing in this Agreement +permits Licensee (including, without limitation, Licensee’s Personnel, +if any) to Install or Access the Licensed Materials outside of the +Territory. + +2.1.4 Effect of Unauthorized Use. +Licensee will not engage in, and will not permit or assist any third +party to engage in any of the uses or activities prohibited (or any uses +or activities inconsistent with the limitations described) in this +Section 2.1 (Limitations and Exclusions) (collectively, “Unauthorized +Uses”). Any such Unauthorized Use, and any Installation of or Access to +the Licensed Materials provided under this Agreement, outside of the +scope of the applicable license grants (including, without limitation, +outside the applicable License Type and/or Permitted Number) or +otherwise not in accordance with this Agreement, constitute or result in +infringement of Autodesk’s intellectual property rights as well as a +breach of this Agreement. Licensee will notify Autodesk promptly of any +such Unauthorized Uses or other unauthorized Installation or Access. + +2.1.5 Use of Open Source Software by +Licensee.  If Licensee uses any third party software (including +free or Open Source Software), whether or not in conjunction with the +Software, Licensee shall ensure that its use does not: (i) create, or +purport to create, obligations of Autodesk or any of its affiliates with +respect to the Software; (ii) grant, or purport to grant, to any third +party any rights to or immunities under Autodesk’s or any of its +affiliates intellectual property rights; or (iii) cause the Software to +be subject to any licensing terms other than those set forth in this +Agreement. + +2.2 Circumvention. + +2.2.1 Licensee may not (i) utilize any equipment, device, software, or +other means to (or designed to) circumvent or remove any form of +technical protection used by Autodesk in connection with the Autodesk +Materials, or (ii) Install or Access the Autodesk Materials with any +product code, authorization code, serial number, or other +copy-protection device not supplied by Autodesk directly or through a +Reseller. Without limitation of the generality of the foregoing, +Licensee may not utilize any equipment, device, software, or other means +to (or designed to) circumvent or remove the Autodesk License Manager or +any tool or technical protection measure provided or made available by +Autodesk for managing, monitoring or controlling Installation of or +Access to Autodesk Materials. + +2.2.2 Licensee may not utilize any equipment, device, software, or other +means to (or designed to) circumvent or remove any usage restrictions, +or to enable functionality disabled by Autodesk, in connection with the +Excluded Materials. Licensee may not bypass or delete any functionality +or technical limitations of the Autodesk Materials that (or that are +designed to) prevent or inhibit the unauthorized copying of, +Installation or Access to the Excluded Materials. + +3\. **All Rights Reserved** + +Autodesk and its licensors retain title to and ownership of, and all +other rights with respect to, the Autodesk Materials and all copies +thereof, including, without limitation, any related copyrights, +trademarks, trade secrets, patents, and other intellectual property +rights. Licensee has only the limited licenses granted with respect to +the Licensed Materials expressly set forth in this Agreement, and +Licensee has no other rights, implied or otherwise. Licensee +acknowledges and agrees that the Autodesk Materials are licensed, not +sold, and that rights to Install and Access the Licensed Materials are +acquired only under the license from Autodesk. The structure and +organization of Software included in the Autodesk Materials, any source +code or similar materials relating to such Software, any API Information +and Development Materials (both as described in Section 1.11 (APIs)), +and any other Licensed Materials identified as confidential or +proprietary are valuable trade secrets of, and confidential and +proprietary information of, Autodesk and its suppliers, and (a) may not +be distributed, disclosed or otherwise provided to third parties, and +(b) may be used only internally and only in conjunction with and for +Licensee’s own authorized internal use of the Licensed Materials. + +4\. **Privacy; Use of Information; Connectivity** + +4.1 Privacy and Use of Information. +Licensee acknowledges and agrees that Licensee (and third parties acting +on Licensee’s behalf) may provide, and Autodesk and its Resellers (and +third parties acting on behalf of Autodesk and its Resellers) may +obtain, certain information and data with respect to Licensee +(including, without limitation, personal information) and Licensee’s +business in connection with this Agreement, including, without +limitation, information and data provided to or obtained by Autodesk and +its Resellers (or third parties acting on behalf of Autodesk and its +Resellers) through the Customer Information Form and otherwise, in +connection with ordering, registration, activation, updating, validating +entitlement to, auditing, monitoring Installation of and Access to +Autodesk Materials, Relationship Programs and Services and managing the +relationship with Licensee. Licensee hereby consents to Autodesk +maintaining, using, storing and disclosing such information and data +(including, without limitation, personal information, if any) in +conformity with Autodesk’s policies on privacy and data protection, as +such policies may be updated from time to time, including without +limitation Autodesk’s Privacy Statement, as currently located at +[http://usa.autodesk.com/privacy/](http://usa.autodesk.com/privacy/). +Without limitation of the generality of the foregoing, Licensee +acknowledges and agrees that: (a) Autodesk may from time to time prompt +Licensee (and third parties acting on Licensee’s behalf) to provide +express agreement to the terms of Autodesk’s Privacy Statement and/or +express agreement to specific uses of information and data (including, +without limitation, personal information); (b) Autodesk may provide +information and data, including, without limitation, information and +data about Licensee’s use of Autodesk Materials, Relationship Programs, +and Licensee’s support requests, to Autodesk subsidiaries and +affiliates, Resellers and other third parties in connection with the +provision, maintenance, administration or usage of Licensed Materials, +Relationship Programs or Services or in connection with enforcement of +any agreements relating to Licensed Materials, Relationship Programs or +Services; and (c) Autodesk may make cross-border transfers of such +information and data, including to jurisdictions with privacy or data +protection laws that are less protective of Licensee than the +jurisdiction in which Licensee is domiciled. Licensee acknowledges and +agrees that such policies may be changed from time to time by Autodesk +and that, effective upon posting on Autodesk’s website or other written +notice from Autodesk, Licensee will be subject to such changes. + +4.2 Connectivity. Certain Licensed +Materials may facilitate or require Licensee’s access to and use of +content and services that are hosted on websites maintained by Autodesk +or by third parties. In some cases, such content and services may appear +to be a feature or function within, or extension of, the Licensed +Materials on Licensee’s Computer even though hosted on such websites. +Accessing such content or services and use of Licensed Materials may +cause Licensee’s Computer, without additional notice, to connect +automatically to the Internet (transitorily, intermittently or on a +regular basis) and to communicate with an Autodesk or third-party +website—for example, for purposes of providing Licensee with additional +information, features and functionality or to validate that the Licensed +Materials and/or content or services are being used as permitted under +this Agreement or other applicable terms. Such connectivity to Autodesk +websites is governed by Autodesk’s policies on privacy and data +protection described in this Section 4 (Privacy; Use of Information; +Connectivity). Such connectivity to websites of third parties is +governed by the terms (including the disclaimers and notices) found on +such sites or otherwise associated with the third-party content or +services. Autodesk does not control, endorse, or accept responsibility +for any such third-party content or services, and any dealings between +Licensee and any third party in connection with such content or +services, including, without limitation, such third party’s privacy +policies, use of personal information, delivery of and payment for goods +and services, and any other terms associated with such dealings, are +solely between Licensee and such third party. Autodesk may at any time, +for any reason, modify or discontinue the availability of any +third-party content or services. Access to and use of certain content +and services (whether of Autodesk or third parties) may require assent +to separate terms and/or payment of additional fees. + +5\. **Limited Warranty and Disclaimers** + +5.1 Limited Warranty. Autodesk warrants +that, as of the date on which the Licensed Materials are delivered to +Licensee and for ninety (90) days thereafter or if the license term is +shorter, such shorter period (“Warranty Period”), the Licensed Materials +will provide the general features and functions described in the User +Documentation portion of the Licensed Materials. Autodesk's entire +liability and Licensee’s exclusive remedy during the Warranty Period +(“Limited Warranty”) will be, with the exception of any statutory +warranty or remedy that cannot be excluded or limited under law, at +Autodesk's option, (i) to attempt to correct or work around errors, if +any, or (ii) to refund the license fees, if any, paid by Licensee and +terminate this Agreement or the license specific to such Licensed +Materials. Such refund is subject to the return, during the Warranty +Period, of the Autodesk Materials, with a copy of Licensee’s License +Identification, to Licensee’s local Autodesk office or the Reseller from +which Licensee acquired the Autodesk Materials. THE LIMITED WARRANTY SET +FORTH IN THIS SECTION GIVES LICENSEE SPECIFIC LEGAL RIGHTS. LICENSEE MAY +HAVE ADDITIONAL LEGAL RIGHTS UNDER LAW WHICH VARY FROM JURISDICTION TO +JURISDICTION. AUTODESK DOES NOT SEEK TO LIMIT LICENSEE’S WARRANTY RIGHTS +TO ANY EXTENT NOT PERMITTED BY LAW. + +5.2 Disclaimer. EXCEPT FOR THE EXPRESS +LIMITED WARRANTY PROVIDED IN SECTION 5.1 (LIMITED WARRANTY), AND TO THE +MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, AUTODESK AND ITS SUPPLIERS +MAKE, AND LICENSEE RECEIVES, NO WARRANTIES, REPRESENTATIONS, OR +CONDITIONS OF ANY KIND, EXPRESS OR IMPLIED (INCLUDING, WITHOUT +LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE, OR NONINFRINGEMENT, OR WARRANTIES OTHERWISE IMPLIED +BY STATUTE OR FROM A COURSE OF DEALING OR USAGE OF TRADE) WITH RESPECT +TO ANY AUTODESK MATERIALS, RELATIONSHIP PROGRAMS, OR SERVICES (PURSUANT +TO A RELATIONSHIP PROGRAM OR OTHERWISE). ANY STATEMENTS OR +REPRESENTATIONS ABOUT THE AUTODESK MATERIALS, RELATIONSHIP PROGRAMS OR +SERVICES AND THEIR FEATURES OR FUNCTIONALITY IN THE LICENSED MATERIALS +OR ANY COMMUNICATION WITH LICENSEE ARE FOR INFORMATION PURPOSES ONLY, +AND DO NOT CONSTITUTE A WARRANTY, REPRESENTATION, OR CONDITION. WITHOUT +LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT: (a) THAT THE +OPERATION OR OUTPUT OF THE LICENSED MATERIALS OR SERVICES WILL BE +UNINTERRUPTED, ERROR-FREE, SECURE, ACCURATE, RELIABLE, OR COMPLETE, +WHETHER OR NOT UNDER A RELATIONSHIP PROGRAM OR SUPPORT BY AUTODESK OR +ANY THIRD PARTY; (b) THAT ERRORS WILL BE CORRECTED BY AUTODESK OR ANY +THIRD PARTY; OR (c) THAT AUTODESK OR ANY THIRD PARTY WILL RESOLVE ANY +PARTICULAR SUPPORT REQUEST OR THAT SUCH RESOLUTION WILL MEET LICENSEE’S +REQUIREMENTS OR EXPECTATIONS. NOTHING IN THE FOREGOING RESTRICTS THE +EFFECT OF WARRANTIES OR CONDITIONS WHICH MAY BE IMPLIED BY LAW WHICH +CANNOT BE EXCLUDED, RESTRICTED OR MODIFIED NOTWITHSTANDING A CONTRACTUAL +RESTRICTION TO THE CONTRARY. WITHOUT LIMITING THE FOREGOING, Autodesk +AND ITS SUPPLIERS MAKE, AND LICENSEE RECEIVES, no warranties that: (I) +future versions of the SDK, Library and/or Sample Code(s), if any, will +contain features similar to or the same as the SDK, Library and/or +Sample Code(s), respectively or will be compatible with the SDK, Library +and/or Sample Code(s), respectively; (II) the Software or the SDK, +Library and/or Sample Code(s) will meet LICENSEE requirements; or (iii) +operation of the SDK, Library or Sample Code(s) will be uninterrupted or +error-free. + +6\. **Warnings** + +6.1 Functionality Limitations. The +Licensed Materials and Services (except for Licensed Materials designed +for non-commercial use, such as Autodesk Materials designed to be used +for household or other consumer purposes or licensed only for purposes +of educational or individual learning) are commercial professional tools +intended to be used by trained professionals only. Particularly in the +case of commercial professional use, the Licensed Materials and Services +are not a substitute for Licensee’s professional judgment or independent +testing. The Licensed Materials and Services are intended only to assist +Licensee with its design, analysis, simulation, estimation, testing +and/or other activities and are not a substitute for Licensee’s own +independent design, analysis, simulation, estimation, testing, and/or +other activities, including those with respect to product stress, safety +and utility. Due to the large variety of potential applications for the +Licensed Materials and Services, the Licensed Materials and Services +have not been tested in all situations under which they may be used. +Autodesk will not be liable in any manner whatsoever for the results +obtained through use of the Licensed Materials or Services. Persons +using the Licensed Materials or Services are responsible for the +supervision, management, and control of the Licensed Materials and +Services and the results of using the Licensed Materials and Services. +This responsibility includes, without limitation, the determination of +appropriate uses for the Licensed Materials and Services and the +selection of the Licensed Materials, Services and other computer +programs and materials to help achieve intended results. Persons using +the Licensed Materials or Services are also responsible for establishing +the adequacy of independent procedures for testing the reliability, +accuracy, completeness, and other characteristics of any output of the +Licensed Materials or Services, including, without limitation, all items +designed with the assistance of the Licensed Materials or Services. +Licensee further acknowledges and agrees that the Licensed Materials +form part of Licensee’s total unique hardware and software environment +to deliver specific functionality, and that the Licensed Materials and +Services provided by Autodesk may not achieve the results Licensee +desires within Licensee’s design, analysis, simulation, estimation, +and/or testing constraints. + +6.2 Activation Codes and Security. + +6.2.1 Activation Code Required for +Installation/Access and Continued Use. Installation of and Access +to the Licensed Materials require, and the continued use thereof may +from time to time require, activation codes issued by Autodesk. +Registration may be required before an activation code is issued by +Autodesk. Licensee will provide Autodesk and its Reseller with any +information required for such registration and agrees that any +information provided to Autodesk or its Reseller will be accurate and +current. Licensee will also maintain and update Licensee’s registration +information, on an ongoing basis, through customer data registration +processes, including without limitation the Customer Information Form, +which may be provided by Autodesk. Licensee acknowledges and agrees that +Autodesk may use such information in accordance with its Privacy +Statement (as described or referenced in Section 4 (Privacy; Use of +Information; Connectivity)). + +6.2.2 Disabling Access. LICENSEE +ACKNOWLEDGES AND AGREES THAT INSTALLATION OF AND ACCESS TO LICENSED +MATERIALS MAY BE DISABLED BY THE ACTIVATION, SECURITY, AND TECHNICAL +PROTECTION MECHANISMS IF LICENSEE TRIES TO TRANSFER ALL OR A PART OF THE +LICENSED MATERIALS TO ANOTHER COMPUTER, IF LICENSEE TAMPERS WITH THE +TECHNICAL PROTECTION MECHANISMS OR DATE-SETTING MECHANISMS ON A COMPUTER +OR IN THE LICENSED MATERIALS, IF LICENSEE USES THE LICENSED MATERIALS +PAST AN APPLICABLE RELATIONSHIP PROGRAM PERIOD OR FIXED TERM, OR IF +LICENSEE UNDERTAKES CERTAIN OTHER ACTIONS THAT AFFECT THE SECURITY MODE +OR UNDER OTHER CIRCUMSTANCES AND THAT, IN ANY SUCH EVENT, LICENSEE’S +ACCESS TO LICENSEE’S WORK PRODUCT AND OTHER DATA MAY BE AFFECTED. MORE +INFORMATION IS CONTAINED IN THE APPLICABLE LICENSED MATERIALS OR +AVAILABLE FROM AUTODESK ON REQUEST. + +6.2.3 Effect of Activation Codes. +Licensee acknowledges and agrees that receipt of an activation code +(whether or not provided to Licensee in error) will not constitute +evidence of or affect the scope of Licensee’s license rights. Those +rights will be only as set forth in this Agreement and the applicable +License Identification. + +6.3 Affected Data. Work product and other +data created with Licensed Materials made available under certain +License Types, including licenses that limit the permitted purpose to +educational purposes or personal learning purposes, may contain certain +notices and limitations that make the work product and other data usable +only in certain circumstances (e.g., only in the education field). In +addition, if Licensee combines or links work product or other data +created with such Licensed Materials with work product or other data +otherwise created, then such other work product or data may also be +affected by these notices and limitations. Autodesk will have no +responsibility or liability whatsoever if Licensee combines or links +work product or other data created with such Licensed Materials with +work product or other data otherwise created. In addition, Licensee will +not remove, alter or obscure any such notices or limitations. + +7\. **Limitations of Liability** + +7.1 Limitation on Type and Amount of +Liability. IN NO EVENT WILL AUTODESK OR ITS SUPPLIERS HAVE ANY +LIABILITY (DIRECTLY OR INDIRECTLY) FOR ANY INCIDENTAL, SPECIAL, +INDIRECT, CONSEQUENTIAL OR PUNITIVE DAMAGES; FOR LOSS OF PROFITS, USE, +REVENUE, OR DATA; OR FOR BUSINESS INTERRUPTION (REGARDLESS OF THE LEGAL +THEORY FOR SEEKING SUCH DAMAGES OR OTHER LIABILITY). IN ADDITION, THE +LIABILITY OF AUTODESK AND ITS SUPPLIERS ARISING OUT OF OR RELATING TO +ANY AUTODESK MATERIALS, RELATIONSHIP PROGRAMS OR SERVICES WILL NOT +EXCEED THE AMOUNT PAID OR PAYABLE BY LICENSEE FOR SUCH AUTODESK +MATERIALS, RELATIONSHIP PROGRAMS, OR SERVICES, RESPECTIVELY. + +7.2 Application of and Basis for +Limitations. THE LIMITATIONS OF LIABILITY IN THIS SECTION 7 +(LIMITATIONS OF LIABILITY) WILL APPLY TO THE MAXIMUM EXTENT PERMITTED BY +APPLICABLE LAW TO ANY DAMAGES OR OTHER LIABILITY, HOWEVER CAUSED AND +REGARDLESS OF THE THEORY OF LIABILITY, WHETHER DERIVED FROM CONTRACT, +TORT (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE, EVEN IF +AUTODESK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LIABILITY AND +REGARDLESS OF WHETHER THE LIMITED REMEDIES AVAILABLE HEREUNDER FAIL OF +THEIR ESSENTIAL PURPOSE. ALSO, LICENSEE AGREES THAT THE LICENSE, +RELATIONSHIP PROGRAMS AND SERVICES FEES AND OTHER FEES CHARGED BY +AUTODESK AND PAID BY LICENSEE ARE BASED ON AND REFLECTIVE OF THE +ALLOCATION OF RISK CONTEMPLATED BY THIS SECTION 7 (LIMITATIONS OF +LIABILITY) AND THAT THE LIABILITY LIMITATIONS IN THIS SECTION 7 +(LIMITATIONS OF LIABILITY) ARE AN ESSENTIAL ELEMENT OF THE AGREEMENT +BETWEEN THE PARTIES. + +8\. **Term and Termination** + +8.1 Term; Termination or Suspension. Each +license under this Agreement, with respect to each specific set of +Licensed Materials covered by this Agreement, will become effective as +of the latest to occur of: (a) this Agreement becoming effective, (b) +payment by Licensee of the applicable fees, excluding licenses (such as +evaluation licenses) where no fees are required, (c) delivery of the +specific Licensed Materials, and (d) in the case of Autodesk Materials +provided in connection with a Relationship Program, upon commencement of +the applicable Relationship Program period or fixed term. Each of +Autodesk or Licensee may terminate this Agreement, Licensee’s license as +to Licensed Materials, Licensee’s Relationship Program, and/or the +provision of Services relating to the Licensed Materials if the other +party is in breach of this Agreement and fails to cure such breach +within ten (10) days after written notice of the breach; however, if +Licensee is in breach of Section 1 (License) or Section 2 (License +Limitations; Prohibitions), Autodesk may terminate this Agreement, +Licensee’s license as to Licensed Materials, Licensee’s Relationship +Program, and/or the provision of Services relating to the Licensed +Materials immediately upon written notice of the breach. In addition, +Autodesk may, as an alternative to termination, suspend Licensee’s +license as to the Licensed Materials, Licensee’s Relationship Program, +the provision of Services relating to the Licensed Materials, and/or +other Autodesk obligations or Licensee rights under this Agreement (or +under other terms, if any, relating to materials associated with the +Licensed Materials), if Licensee fails to make a payment to Autodesk or +a Reseller or otherwise fails to comply with the provisions of this +Agreement or other terms relating to any such license, Relationship +Program, Services, or other associated materials. Autodesk may also +terminate this Agreement if Licensee becomes subject to bankruptcy +proceedings, becomes insolvent, or makes an arrangement with Licensee’s +creditors. This Agreement will terminate automatically without further +notice or action by Autodesk if Licensee goes into liquidation. + +Licensee acknowledges and agrees that Autodesk may assign or +sub-contract any of its rights or obligations under this Agreement. + +8.2 Effect of Termination of Agreement or +License. Upon termination or expiration of this Agreement, the +licenses granted hereunder will terminate. Upon termination or +expiration of any license granted to Licensee, Licensee must cease all +use of Autodesk Materials to which such license applies, any +Relationship Program (including, without limitation, associated +services), and any Services and Uninstall all copies of the Autodesk +Materials. At Autodesk’s request, Licensee agrees to destroy or return +to Autodesk or the Reseller from which they were acquired all Autodesk +Materials. Autodesk reserves the right to require Licensee to show +satisfactory proof that all copies of the Autodesk Materials have been +Uninstalled and, if so requested by Autodesk, destroyed or returned to +Autodesk or the Reseller from which they were acquired. If Licensee’s +Relationship Program is terminated or expires, but this Agreement and +Licensee’s license to the Licensed Materials remains in effect, any +rights of Licensee based on the Relationship Program (including, without +limitation, rights with respect to Previous Versions) will terminate, +and (unless otherwise authorized by the Relationship Program Terms) +Licensee must comply with the obligations of Section 1.2.1 (Effect of +Upgrades) with respect to (including the obligations to cease use of, +Uninstall and destroy or return) all copies of such Previous Versions. + +8.3 Survival. Sections 1.3 (Additional +Terms), 1.4 (Other Materials), 1.5 (Authorized Users), 1.6 (Third-Party +Licensed Materials), 1.11 (APIs), 2.1.1 (No License Granted;Unauthorized +Activities), 2.1.4 (Effect of Unauthorized Use), 2.2 (Circumvention), 3 +(All Rights Reserved), 4 (Privacy; Use of Information; Connectivity), +5.2 (Disclaimer), 6 (Warnings), 7 (Limitations of Liability), 8 (Term +and Termination), and 9 (General Provisions) and Exhibit A will survive +any termination or expiration of this Agreement. + +9\. **General Provisions** + +9.1 Notices. Notices in connection with +this Agreement by either party will be in writing and will be sent by +electronic mail, postal service, or a delivery service (such as UPS, +FedEx or DHL), except that Licensee may not provide notice to Autodesk +of an Autodesk breach or provide notice of termination of this Agreement +by electronic mail. Notices from Autodesk to Licensee will be effective +(a) in the case of notices by email, one (1) day after sending to the +email address provided to Autodesk, or (b) in the case of notices by +mail or delivery service, five (5) days after sending by regular post or +delivery service to the address provided to Autodesk. Licensee hereby +consents to service of process being effected on Licensee by registered +mail sent to the address set forth on Licensee’s Customer Information +Form (or, if no Customer Information Form has been provided, Licensee’s +last address known by Autodesk) if so permitted by applicable law. +Notices from Licensee to Autodesk will be effective (a) in the case of +notices by email, one (1) day after sending to (and receipt by Autodesk +at) CopyrightAgent@autodesk.com, or (b) in the case of notices by mail +or delivery service, when received by Autodesk at Autodesk, Inc., 111 +McInnis Parkway, San Rafael, California 94903, USA, Attention: Copyright +Agent. If Licensee participates in a Relationship Program, either party +may also provide notice as set forth in the Relationship Program Terms. + +9.2 Governing Law and Jurisdiction. This +Agreement will be governed by and construed in accordance with the laws +of (a) Switzerland if Licensee acquired the Autodesk Materials in a +country in Europe, Africa or the Middle East, (b) Singapore if Licensee +acquired the Autodesk Materials in a country in Asia, Oceania or the +Asia-Pacific region, or (c) the State of California (and, to the extent +controlling, the federal laws of the United States) if Licensee acquired +the Autodesk Materials in a country in the Americas (including the +Caribbean) or any other country not specified in this Section 9.2 +(Governing Law and Jurisdiction). The laws of such jurisdictions shall +govern without reference to the conflicts-of-laws rules thereof. The UN +Convention on Contracts for the International Sale of Goods and the +Uniform Computer Information Transaction Act shall not apply to (and are +excluded from the laws governing) this Agreement. In addition, each +party agrees that any claim, action or dispute arising under or relating +to this Agreement will be brought exclusively in (and the parties will +be subject to the exclusive jurisdiction of) the Superior Court of the +State of California, County of Marin, or the United States District +Court for the Northern District of California in San Francisco, except +that if Licensee has acquired the Autodesk Materials in (a) a country in +Europe, Africa or the Middle East, any such claim or dispute will be +brought exclusively in (and the parties will be subject to the exclusive +jurisdiction of) the courts of Switzerland, or (b) a country in Asia, +Oceania or the Asia-Pacific region, any such claim or dispute will be +brought exclusively in (and the parties will be subject to the exclusive +jurisdiction of) the courts of Singapore. Nothing in the foregoing will +prevent Autodesk from bringing an action for infringement of +intellectual property rights in any country where such infringement is +alleged to occur. + +9.3 No Assignment; Insolvency. Licensee +may not assign this Agreement or any rights hereunder (whether by +purchase of stock or assets, merger, change of control, operation of +law, or otherwise) without Autodesk's prior written consent, which may +be withheld in Autodesk's sole and absolute discretion, and any +unauthorized purported assignment by Licensee will be void. In the +context of any bankruptcy or similar proceeding, Licensee acknowledges +and agrees this Agreement is and shall be treated as an executory +contract that may not be assumed and/or assigned without Autodesk's +prior written consent, which consent may be withheld in Autodesk's sole +and absolute discretion whether pursuant to Section 365(c)(1) of Title +11 of the United States Code or any other applicable law respecting the +treatment of executory contracts within bankruptcy. Any assignment +(regardless of how or on what basis the assignment may occur) will be +conditioned on compliance with the following: at least thirty (30) days +before assigning or agreeing to any assignment of rights under this +Agreement (including transferring any copies of or right to use the +Software), (a) Licensee must provide written notice to Autodesk, +Uninstall all copies of the Software, and (without limitation of the +generality of Section 9.7 (Audits)) allow Autodesk or its designee to +inspect the records, systems and facilities of (or operated for) +Licensee and its subsidiaries and affiliates to verify (by any means +available to Autodesk, whether remotely or on premises) that all copies +of the Software have been Uninstalled, (b) the proposed assignee must +agree to comply (and Licensee must ensure that the assignee will comply) +with all of the obligations of this Agreement with respect to such +Software, which agreement must provide that Autodesk is a third-party +beneficiary of the assignee’s agreement, and the assignee must provide a +copy of the agreement to Autodesk, and (c) Licensee and proposed +assignee must comply with all other transfer procedures identified by +Autodesk. + +9.4 Autodesk Subsidiaries and Affiliates. +Licensee acknowledges and agrees that Autodesk may arrange to have its +subsidiaries and affiliates engage in activities in connection with this +Agreement, including, without limitation, delivering Autodesk Materials +and providing Relationship Programs and Services, provided that Autodesk +(and not such subsidiaries and affiliates) will remain subject to the +obligations of Autodesk under this Agreement. Licensee also agrees that +Autodesk’s subsidiaries and affiliates may enforce (including taking +actions for breach of) this Agreement. + +9.5 Exceptions to Prohibitions; +Severability. + +9.5.1 Exceptions to Prohibitions. The +prohibitions contained in this Agreement will not apply where and to the +extent applicable law does not allow such prohibitions to be enforced. +Licensee may have other rights under the laws of the state or country +within the Territory where the Licensed Materials are acquired, and this +Agreement does not change Licensee’s rights under the laws of such state +or country if and to the extent the laws of such state or country do not +permit this Agreement to do so. Licensee will bear the burden of proof +to demonstrate that applicable law does not allow (i) the enforcement of +such prohibitions; or (ii) this Agreement to change particular rights in +a state or country (and that Licensee has not exceeded the bounds of the +unenforceable prohibitions and unchangeable rights). + +9.5.2 Severability. If and to the extent +any provision of this Agreement is held illegal, invalid, or +unenforceable in whole or in part under applicable law, such provision +or such portion thereof will be ineffective as to the jurisdiction in +which it is illegal, invalid, or unenforceable to the extent of its +illegality, invalidity, or unenforceability and will be deemed modified +to the extent necessary to conform to applicable law so as to give the +maximum effect to the intent of the parties. The illegality, invalidity, +or unenforceability of such provision in that jurisdiction will not in +any way affect the legality, validity, or enforceability of such +provision or any other provision of this Agreement in any other +jurisdiction. + +9.6 No Waiver. No term or provision of +this Agreement will be considered waived, and no breach excused, unless +such waiver is in writing signed on behalf of the party against which +the waiver is asserted. No waiver (whether express or implied) will +constitute consent to, waiver of, or excuse of any other, different, or +subsequent breach. + +9.7 Audits. Licensee agrees that Autodesk +has the right to require an audit (electronic or otherwise) of the +Autodesk Materials and the Installation thereof and Access thereto. As +part of any such audit, Autodesk or its authorized representative will +have the right, on fifteen (15) days’ prior notice to Licensee, to +inspect Licensee’s records, systems and facilities, including machine +IDs, serial numbers and related information, to verify that the use of +any and all Autodesk Materials is in conformance with this Agreement. +Licensee will provide full cooperation to enable any such audit. If +Autodesk determines that Licensee’s use is not in conformity with the +Agreement, Licensee will obtain immediately and pay for valid license(s) +to bring Licensee’s use into compliance with this Agreement and other +applicable terms and pay the reasonable costs of the audit. In addition +to such payment rights, Autodesk reserves the right to seek any other +remedies available at law or in equity, whether under this Agreement or +otherwise. + +9.8 Language. The English language +version of this Agreement is legally binding in case of any +inconsistencies between the English version and any translations. If +Licensee purchased the license for the Licensed Materials in Canada, +Licensee agrees to the following: The parties hereto confirm that it is +their wish that this Agreement, as well as other documents relating +hereto, including notices, have been and shall be written in the English +language only. Les parties ci-dessus confirment leur désir que cet +accord ainsi que tous les documents, y compris tous avis qui s'y +rattachent, soient rédigés en langue anglaise. + +9.9 Construction. Ambiguities in this +Agreement will not be construed against the drafter. + +9.10 Force Majeure. Autodesk will not be +liable for any loss, damage or penalty resulting from delays or failures +in performance resulting from acts of God, supplier delay or other +causes beyond Autodesk's reasonable control. + +9.11 U.S. Government Rights. For U.S. +Government procurements, all Autodesk Materials are deemed to be +commercial computer software as defined in FAR 12.212 and subject to +restricted rights as defined in FAR Section 52.227-19 "Commercial +Computer Software - Restricted Rights" and DFARS 227.7202, “Rights in +Commercial Computer Software or Commercial Computer Software +Documentation”, as applicable, and any successor regulations. Any use, +modification, reproduction release, performance, display or disclosure +of the Autodesk Materials by the U.S. Government shall be solely in +accordance with license rights and restrictions described herein. + +9.12 Export Control. Licensee +acknowledges and agrees that the Autodesk Materials and Services +(including any data submitted by Licensee in connection with a Service +and any Licensee-specific output generated by a Service) are subject to +compliance with United States and other applicable country export +control and trade sanctions laws, rules and regulations, including, +without limitation the regulations promulgated by the U.S. Department of +Commerce and the U.S. Department of the Treasury (collectively, "Export +Control Laws"). Licensee represents, warrants and covenants that neither +Licensee nor Licensee’s Personnel (i) are a citizen or resident of, or +located within, a nation that is subject to U.S. trade sanctions or +other significant trade restrictions (including, without limitation, +Cuba, Iran, Sudan, Syria and North Korea), (ii) are identified on any of +the U.S. government restricted party lists (including, without +limitation, the U.S. Treasury Department's List of Specially Designated +Nationals and Blocked Persons, the U.S. Department of Commerce’s Denied +Party List, Entity List and Unverified List and the U.S. Department of +State’s proliferation-related lists), (iii) will, unless otherwise +authorized under the Export Control Laws, use Autodesk Materials or +Services in any restricted end use, including, without limitation, +design, analysis, simulation, estimation, testing, or other activities +related to nuclear, chemical/biological weapons, rocket systems or +unmanned air vehicles applications, or (iv) will use the Autodesk +Materials or Services to disclose, transfer, download, export, or +re-export, directly or indirectly, any Licensee-specific output +generated by the Autodesk Materials or Services, Licensee content, third +party content, or any other content or material to any country, entity, +or party that is ineligible to receive such items under the Export +Control Laws or other laws or regulations to which Licensee may be +subject. Licensee understands that the requirements and restrictions of +the Export Control Laws as applicable to Licensee may vary depending on +the Autodesk Materials or Services provided under this Agreement and may +change over time. Licensee shall be solely responsible for (i) +determining the precise controls applicable to the Autodesk Materials or +Services, and (ii) complying with the Export Control Laws and monitoring +any modifications to them. + +9.13 Entire Agreement. This Agreement and +any other terms referenced in this Agreement (such as the Relationship +Program Terms and the Services Terms) constitute the entire agreement +between the parties (and merge and supersede any prior or +contemporaneous agreements, discussions, communications, agreements, +representations, warranties, advertising or understandings) with respect +to the subject matter hereof, except that particular Autodesk Materials +may be subject to additional or different terms associated with such +Autodesk Materials. The parties acknowledge that, in entering into this +Agreement, they are not relying on any agreements, discussions, +communications, agreements, representations, warranties, advertising or +understandings other than as expressly set forth in this Agreement. +Licensee acknowledges and agrees that Autodesk may add to or change the +Relationship Program Terms and the Services Terms from time to time, +provided that Autodesk will provide written notice of the additions or +changes (and may allow Licensee not to renew, may permit Licensee to +terminate, and may offer other options with respect to Relationship +Programs or Services) before the additions or changes are effective as +to Licensee. In the event of a conflict between this Agreement and any +other terms of Autodesk (including, without limitation, the Relationship +Program Terms, the Services Terms, or such additional or different +terms), the other terms will apply. Terms stipulated by Licensee in any +communication by Licensee which purport to vary this Agreement or such +other terms will be void and of no effect unless agreed in a writing +signed by an authorized representative of Autodesk. Any other +modifications to this Agreement will also be invalid unless agreed to in +a writing signed by an authorized representative of Autodesk. + +10\. **Additional Terms.** + +This Section 10 (Additional Terms) applies to the following Software +that may be included within the Licensed Materials: (i) Autodesk Maya; +(ii) Autodesk Softimage; (iii) Autodesk 3ds Max; and (iv) Autodesk 3ds +Max Design. + +10.1 Rendering. + +10.1.1 With regard to the Rendering Software (defined below), in +addition to any other license granted in this Agreement, Licensee may +allow the Rendering Software to be Installed or Accessed on a Networked +Basis, solely for Licensee’s Internal Business Needs, specifically to +render files created with the Software. However, if the Rendering +Software is mental ray, and the Software is provided with a finite +number of mental ray rendering nodes, then with regard to mental ray the +foregoing is restricted to that number of mental ray rendering nodes. + +10.1.2 With regard to the mental ray Batch Software (defined below), in +addition to any other license granted in this Agreement, Licensee may +allow the mental ray Batch Software to be Installed or Accessed on a +Networked Basis, solely for Licensee’s Internal Business Needs, and used +(i) specifically to render files created with the Software; or (ii) by +the Rendering Software specifically to render files created with the +Software. The total number of CPUs used by the mental ray Batch Software +cannot exceed the number specified in the License Identification. + +10.1.3 With regard to the mental ray Standalone (defined below), +Licensee may allow the mental ray Standalone to be Installed or +Accessed, on a Networked Basis, solely on Computing Device(s) (defined +below) solely for Licensee’s Internal Business Needs specifically to +render files created with the Software. With regard to mental ray +Standalone, any reference in the Agreement to Computer is hereby deleted +and “Computing Device(s)” substituted therefor. + +10.1.4 With regard to the mental ray Satellite (defined below) for each +of Autodesk 3ds Max, Autodesk Maya and Autodesk Softimage Software each +mental ray Satellite executable(s) may run on one (1) or more host no +more than four (4) client Computing Devices. With regard to mental ray +Satellite, any reference in the Agreement to Computer is hereby deleted +and “Computing Device(s)” substituted therefor. + +10.1.5 Definitions. + +(1) “mental ray Standalone” means the mental ray Standalone +client/server executable, including the mental ray standard shader +libraries and utility programs, used specifically for rendering files +created with the Software. + +(2) “Rendering Software” means a subset of the Software used +specifically for rendering files created with the Software. + +(3) “mental ray Batch Software” means a subset of the Software used: (i) +specifically for rendering files created with the Software or (ii) by +the Rendering Software specifically for rendering files created with the +Software. + +(4) “mental ray Satellite” means the mental ray Satellite server +executable, including the mental ray standard shader libraries. mental +ray Satellite is functionally equivalent to the mental ray Standalone +server executable, used specifically for rendering files created with +the Software except it is not able to read and write files in the +complete mi2 format. + +(5) “Computing Device” means (i) a single electronic assembly with a +maximum of: (a) four (4) CPUs (regardless of the number of cores in each +CPU) each CPU having one or more microprocessors, (b) four (4) discrete +GPU-based computing boards; or (ii) a software implementation of the +single electronic assembly, (a so-called 'virtual machine') described in +(i) above, which single electronic assembly accepts information in +digital or similar form and manipulates the information for a specific +result based on a sequence of instructions. + +10.2 Exceptions. + +10.2.1 This Section 10.2 (Exceptions) applies to the Autodesk Media & +Entertainment 3D entertainment Software that may be included within the +Licensed Materials. Notwithstanding the provisions set forth in Section +2.1.1 (No License Granted; Unauthorized Activities) if: (i) the +Redistributable Component (defined below) operates with the Software and +with Licensee Application; and (ii) the Redistributable Component is +linked to Licensee Application; then Licensee may reproduce and +distribute the Redistributable Component and Licensee Application +together, subject to Licensee’s strict adherence to all of the following +terms and conditions: + +(a) the class identifications for any classes of objects Licensee +created shall be different from and clearly distinguishable from the +class identifications used by Autodesk; + +(b) modified Sample (defined below) code and any resulting binary files +in Licensee Application are identified as developed by Licensee, and not +by Autodesk; + +(c) Licensee Application has Licensee’s copyright notice; + +(d) any Modification (defined below), and resulting binary files, shall +include the copyright notices of Autodesk, Inc. as well as the following +statement: "This software contains copyrighted code owned by Autodesk, +Inc. but has been modified and is not endorsed by Autodesk, Inc." The +language of the copyright notice and the statement shall be in the same +language as the Software language; + +(e) distribution is strictly for not-for-profit purposes; + +(f) distribution is either in binary form or text form; + +(g) distribution is subject to a standard form of click-through end-user +license agreement which license agreement, among other things: (1) +protects Autodesk's interests consistent with the terms of this +Agreement; and (2) prohibits the redistribution of the Redistributable +Component; + +(h) if the Redistributable Component operates with the Autodesk 3ds Max +Software and/or Autodesk 3ds Max Design Software and with Licensee +Application then prior to reproduction and distribution of the +Redistributable Component and Licensee Application all MIDI files have +been excluded from the Redistributable Component and Licensee +Application; and + +(i) Licensee agrees to defend, indemnify and hold harmless Autodesk and +its subsidiaries and affiliates from and against any and all damages, +costs, losses, liabilities, expenses and settlement amounts incurred in +connection with any suit, claim or action by any third party alleging +that the Redistributable Component and/or Licensee Application infringes +or misappropriates any patent, copyrights, moral rights, trademark, +trade secret and design rights, whether registered or unregistered, and +including any application for registration of any of the foregoing and +all rights or forms of protections of a similar nature having equivalent +or similar effect to any of these, which may subsist anywhere in the +world, of such third party. + +10.2.2 Definitions. + +(1) "Licensee Application" means, with regard to the Software, a +Modification made by Licensee for designing, developing, and testing an +application program made by Licensee. + +(2) "Modification" means any: (i) addition to the substance of a Sample +or any addition to the substance of the contents of a file containing a +Sample; (ii) any deletion from the structure of a Sample, or any +deletion from the structure of the contents of a file containing a +Sample; and/or (iii) any new file that contains any part of a Sample; +all of which, in Autodesk’s sole discretion, ensures that the Sample is +not the primary source of value. + +(3) "Redistributable Component" means the Sample(s) and/or a +Modification. + +(4) "Sample(s)" means sample source code, or individual animations, +still images, and/or audio files contained in the Software, and located +in the samples directory, the examples subdirectory, samples files or +any similar type directory or file. + +10.3 Additional Terms; Certain Softimage +Materials. This Section 10.3 (Additional Terms; Certain Softimage +Materials) applies to the following Software that may be included within +the Licensed Materials: (i) Autodesk Softimage Mod Tool software; and +(ii) Autodesk Softimage Mod Tool Pro software. + +10.3.1 Autodesk Softimage Mod Tool +Software. In the event the Software is Autodesk Softimage Mod +Tool Software then the applicable Exhibit B License Type is B. 4. +(Educational Stand-alone (Individual) +License). + +10.3.2 Autodesk Softimage Mod Tool Pro +Software. In the event the Software is Autodesk Softimage Mod +Tool Pro Software, then the applicable Exhibit B License Type is B. 1. +(Stand-alone (Individual) License), however, Licensee’s Internal +Business Needs are limited to the design, development and testing of an +application program designed to function with the Software for +Licensee’s internal use in producing multimedia content in conjunction +with Licensee’s valid XNA® Creators Club Online Premium +Membership. + +11\. **Additional Terms: Quantity Take Off**. + +This Section 11 (Additional Terms; Quantity Take Off) applies to the +Quantity Take Off Software that may be included within the Licensed +Materials (“QTO Software”): + +11.1 The QTO Software is based in part on the work of the Independent +JPEG Group. + +11.2 Portions of the QTO Software include Crystal Reports Runtime +Software (“Runtime Software”) licensed from Business Objects Software +Ltd (“Business Objects”). Licensee’s use of the Runtime Software is +subject to the following terms: + +(a) Licensee agrees not to alter disassemble, decompile, translate, +adapt or reverse-engineer the Runtime Software or the report file (.RPT) +format; + +(b) Licensee agrees not to distribute the Runtime Software with any +general-purpose report writing, data analysis or report delivery product +or any other product that performs the same or similar functions as +Business Objects’ product offerings; + +(c) Licensee agrees not to use the Runtime Software to create for +distribution a product that is generally competitive with Business +Objects' product offerings; + +(d) Licensee agrees not to use the Runtime Software to create for +distribution a product that converts the report file (.RPT) format to an +alternative report file format used by any general-purpose report +writing, data analysis or report delivery product that is not the +property of Business Objects; and + +(e) Licensee agrees not to use the Crystal Reports Software on a rental +or timesharing basis or to operate a service bureau facility for the +benefit of third-parties. + +11.3 BUSINESS OBJECTS AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESS +OR IMPLIED, INCLUDING WITHOUT LIMITATION THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT +OF THIRD PARTY RIGHTS. BUSINESS OBJECTS AND ITS SUPPLIERS SHALL HAVE NO +LIABILITY WHATSOEVER UNDER THIS AGREEMENT OR IN CONNECTION WITH THE +CRYSTAL REPORTS SOFTWARE. + +12\. Autodesk download technology may use the Akamai NetSession +Interface, which may utilize a limited amount of your upload bandwidth +and PC resources to connect you to a peered network and improve speed +and reliability of Web content. The Akamai NetSession Interface is +secure client-side networking technology that harnesses the power of +your computer to deliver software and media available on the Akamai +network. Your Akamai NetSession Interface works collectively with other +Akamai NetSession Interfaces, along with thousands of Akamai edge +servers, and runs as a networking service utilizing a limited amount of +your computer's available resources. More information about the Akamai +NetSession Interface is available here: +[http://www.akamai.com/client](http://www.akamai.com/client). +By clicking "Accept" and using the Autodesk download technology, you +accept the Akamai License Agreement +([http://www.akamai.com/eula](http://www.akamai.com/eula)) +in addition to the Autodesk License and Service Agreement. + +**Exhibit A** + +**Definitions** + +1\. “Access” or +“Accessible” means, with respect to a +computer program or other materials, (a) to use or execute the computer +program or other materials or (b) to use or otherwise benefit from the +features or functionality of the computer program or other materials. + +2\. “Agreement” means this License and +Services Agreement, including all exhibits and schedules thereto, as the +License and Services Agreement may be amended from time to time in +accordance with the terms thereof. + +3\. “Authorized User” means any +individual person who Installs or Accesses, or is authorized to Install +or Access, any of the Licensed Materials. + +4\. “Autodesk” means Autodesk, Inc., a +Delaware corporation, except that if, Licensee acquires a license to the +Autodesk Materials in (a) a country in Europe, Africa or the Middle +East, “Autodesk” means Autodesk Development Sàrl or (b) a country in +Asia, Oceania or the Asia-Pacific region, “Autodesk” means Autodesk Asia +Pte Ltd. + +5\. “Autodesk License Manager” means the +tool known as Autodesk License Manager or any future Autodesk tool for +managing, monitoring or controlling Installation of or Access to +Autodesk Materials. + +6\. “Autodesk Materials” means any +materials distributed or made available by Autodesk, directly or +indirectly, including Software, Supplemental Materials, User +Documentation and Excluded Materials (whether or not licensed to +Licensee). + +7\. “Computer” means (i) a single +electronic device, with one or more central processing units (CPUs), +that accepts information in digital or similar form and manipulates the +information for a specific result based on a sequence of instructions, +or (ii) a software implementation of such a device (or so-called virtual +machine). + +8\. “Customer Information Form” means a +form completed by or on behalf of Licensee and submitted to Autodesk or +a Reseller, directly or indirectly, in connection with Licensee’s order +for a license of Autodesk Materials, Relationship Program or Services. + +9\. “Educational Licensee” means a +Licensee who is also (a) a Qualified Educational Institution, (b) +Faculty, (c) Student or (d) Other Authorized Educational Licensee. An +Educational Licensee may be required to show proof of eligibility if +requested by Autodesk. Autodesk, in its sole discretion, retains the +right to determine the eligibility of an Educational Licensee. + +10\. “Educational Purposes” means (i) in +the case of a Qualified Educational Institution, Faculty or Other +Authorized Educational Licensees, purposes directly related to learning, +teaching, training, research and development that are part of the +instructional functions performed by a Qualified Educational Institution +or Other Authorized Educational Licensee and (ii) in the case of +Students, purposes related to learning, training, research or +development. “Educational Purposes” does not include commercial, +professional or any other for-profit purposes. + +11\. “Evaluation Purposes” means purposes +of evaluation and demonstration of the capabilities of the Software or +Supplemental Materials but excludes competitive analysis and any +commercial, professional, or other for-profit purposes. + +12\. “Excluded Materials” means any +materials, including Software, Supplemental Materials or User +Documentation (and including, without limitation, any computer programs, +modules or components of a computer program, functionality or features +of a computer program, explanatory printed or electronic materials, +content or other materials, if any), that may be provided or become +available to Licensee, by any means, or that are on any media delivered +to Licensee, for which (a) Licensee does not have a License +Identification, or (b) Licensee has not paid (and continued to pay) the +applicable fees. Licensee acknowledges that Excluded Materials are +included on media or via download for convenience of the licensing +mechanism used by Autodesk, and inclusion does not in any way authorize, +expressly or impliedly, a right to use such Excluded Materials. + +13\. “Faculty” means an individual person +who is an employee or independent contractor working for a Qualified +Educational Institution. + +14\. “Install” and +“Installation” means, with respect to a +computer program or other materials, to copy the program or other +materials onto a hard disk or other storage medium. + +15\. “License Identification” means one +or more designations by Autodesk that set forth the License Type (among +other things) for Licensee’s license of the Licensed Materials. The +License Identification may be (a) located (i) in the Licensed Materials +(e.g., in an “About” box, license information dialog box, or text file +of Software), (ii) on or with Autodesk packaging, or (iii) in a written +confirmation or other notice issued to Licensee by Autodesk and +transmitted via email, facsimile, physical delivery, or otherwise, or +(b) obtained from Autodesk on request. For clarification, License +Identification does not include a designation, confirmation, packaging +or other document provided by a Reseller or other third party. + +16\. “License Type” means a type of +license specified by Autodesk for Autodesk Materials, including the +types set forth in Exhibit B. License Type includes the terms specified +by Autodesk for each type of license, including the applicable terms set +forth in Exhibit B. License Type is determined by Autodesk and may be +specified in the applicable License Identification. + +17\. “Licensed Materials” means Software, +Supplemental Materials and User Documentation (a) downloaded by clicking +on the “I accept” button or other button or mechanism associated with +this Agreement or by otherwise indicating assent to this Agreement, (b) +delivered prepackaged with this Agreement, or (c) otherwise accompanied +by this Agreement, provided that (i) in the case of Software, the +Software is identified in an applicable License Identification, and (ii) +Licensee has paid (and continues to pay) the applicable fees. Licensed +Materials also includes Supplemental Materials and User Documentation +that Autodesk provides or makes available to Licensee for use with +Software licensed under this Agreement if there are no separate terms +for such materials specified by Autodesk. Licensed Materials includes, +without limitation, any error corrections, patches, service packs, +updates and upgrades to, and new versions of, the Licensed Materials +that Autodesk provides or makes available to Licensee under Licensee’s +then-current license. Licensee acknowledges that availability of +Upgrades and new versions may be subject to additional fees and the +Relationship Program Terms. In addition, Licensed Materials includes, +without limitation, any Previous Versions and other Autodesk Materials +that Licensee receives or retains pursuant to the Relationship Program +Terms, but only for so long as and to the extent expressly authorized by +the Relationship Program Terms. Notwithstanding the foregoing (or any +other provision of this Agreement), Licensed Materials in all cases +excludes Excluded Materials. + +18\. “Licensee” means (a) the company or +other legal entity on behalf of which Autodesk Materials are acquired, +if the Autodesk Materials are acquired on behalf of such an entity +(e.g., by an employee, independent contractor, or other authorized +representative), or (b) if there is no such entity, the individual who +accepts this Agreement (e.g., by selecting the “I accept” button or +other button or mechanism associated with this Agreement or otherwise +indicating assent to this Agreement, or by installing, downloading, +accessing, or otherwise copying or using all or any portion of the +Autodesk Materials). For clarification, “Licensee” refers only to a +single, specifically identified legal entity or individual, and does not +include any subsidiary or affiliate of any such legal entity or +individual or any other related person. + +19\. “Licensee’s Internal Business Needs” +means, in reference to Licensed Materials, the use of such Licensed +Materials (and the features and functionality thereof) by Licensee’s own +Personnel to meet the internal requirements of Licensee’s business in +the ordinary course of such business, provided that Internal Business +Needs will in no event include providing or making available such +Licensed Materials (or the features or functionality thereof) to any +third party. + +20\. “Networked Basis” means a computing +environment that includes a Computer acting as a file server which +allows the Licensed Materials Installed on such Computer to be uploaded +and Installed to, and operated, viewed or otherwise Accessed from, other +Computers through a local area network connection or through a VPN +connection subject to compliance with the VPN Requirements. + +21\. “Open Source” means any software +code that: (a) contains, or is derived in any manner, (in whole or in +part), from any software that is distributed as free software, open +source software, shareware (e.g., Linux), or similar licensing or +distribution models; and (b) is subject to any agreement with terms +requiring that using, copying, modifying or redistributing the software +requires that such software and/or the derivative works of such software +be: (i) disclosed and/or distributed in source code form; (ii) be +licensed for the purpose of making derivative works; and/or (iii) be +redistributed free of charge; including, without limitation, software +licensed or distributed under any of the following licenses or +distribution models, or licenses or distribution models similar to, +GNU’s General Public License (GPL) or Lesser/Library GPL (LGPL). + +22\. “Other Authorized Educational +Licensee” means a Licensee described at +[http://www.autodesk.com/educationterms](http://www.autodesk.com/educationterms) +or as otherwise authorized in writing by Autodesk. + +23\. “Permitted Number” means a maximum +number (e.g., number of authorized users, number of concurrent users, +number of computers, sessions, etc.) applicable to a license of the +Licensed Materials and to the License Type associated with such license. +Such number is determined by Autodesk and may be specified in the +applicable License Identification. + +24\. “Personal Learning Purposes” means +(i) personal learning as a Student or (ii) in the case of a non-Student, +personal learning, excluding (a) in-person or online classroom learning +in any degree-granting or certificate granting program, and (b) learning +related to any commercial, professional or other for-profit purposes. + +25\. “Personnel” means (a) Licensee’s +individual employees and (b) individual persons who are independent +contractors working on Licensee’s premises and who Install and Access +the Licensed Materials only on and through Computers owned or leased and +controlled by Licensee. + +26\. “Previous Versions” means, as to any +then-current release of Licensed Materials, a prior release of the +Licensed Materials as to which such then-current release is a successor +or substitute (as determined by Autodesk). + +27\. “Qualified Educational Institution” +means an educational institution which has been accredited by an +authorized governmental agency within its applicable local, state, +provincial, federal, or national government and has the primary purpose +of teaching its enrolled students. Examples, without limitation, of +entities that are included and excluded from this definition are +described at +[http://www.autodesk.com/educationterms](http://www.autodesk.com/educationterms). + +28\. “Relationship Program” means (i) +Subscription or (ii) a rental program offered generally by Autodesk +pursuant to which Autodesk makes available Licensed Materials. + +29\. “Relationship Program Terms” means +the terms for a Relationship Program set forth at +[http://usa.autodesk.com/company/legal-notices-trademarks/support-terms-and-conditions](http://usa.autodesk.com/company/legal-notices-trademarks/support-terms-and-conditions) +or any successor or supplemental web page of Autodesk (the URL for which +may be obtained on Autodesk’s website or on request). + +30\. “Reseller” means a distributor or +reseller authorized directly or indirectly by Autodesk to distribute +authentic Autodesk Materials to Licensee. + +31\. ”Services” means services (including +the results of services) provided or made available by Autodesk, +including, without limitation, support services, storage, simulation and +testing services, training and other benefits, but excluding services +provided or made available as part of a Relationship Program. + +32\. “Services Terms” means the terms for +Services set forth at a location where a user may order or register for, +or that is displayed in connection with ordering or registering for, +such Services (e.g., a web page) or, if there are no such terms, at +[http://usa.autodesk.com/company/legal-notices-trademarks/terms-of-service](http://usa.autodesk.com/company/legal-notices-trademarks/terms-of-service) +(if the Services are web services) or +[http://usa.autodesk.com/company/legal-notices-trademarks/terms-of-use](http://usa.autodesk.com/company/legal-notices-trademarks/terms-of-use) +for all other Services) or any successor or supplemental web pages of +Autodesk. + +33\. “Software” means the Autodesk FBX +SDK computer program, or a module or component of a computer program, +including the software development kit (“SDK”) distributed or made +available by Autodesk. The term “Software” may also refer to functions +and features of a computer program. + +34\. “Stand-alone Basis” means (i) the +Licensed Materials are Installed on a single Computer and (ii) the +Licensed Materials cannot be Installed on, or operated, viewed or +otherwise Accessed from or through any other Computer (e.g., through a +network connection of any kind). + +35\. “Student” means an individual person +enrolled as a student at a Qualified Educational Institution. + +36\. “Subscription” is the program +offered generally by Autodesk under which Autodesk provides (among other +things) updates and upgrades to, new versions of, and certain other +support, services and training relating to Autodesk Materials. + +37\. “Supplemental Materials” means +materials, other than Software and related User Documentation, that are +distributed or made available by Autodesk for use with Software. +Supplemental Materials include, without limitation, (a) content, such as +sample drawings and designs, modules for drawings and designs, and +representations of elements used in drawings and designs (e.g., +buildings, parts of buildings, fixtures, furniture, bridges, roads, +characters, backgrounds, settings and animations), (b) background +materials, such as building codes and descriptions of building +practices, (c) tools for rendering the output of the Software, such as +fonts, and (d) Development Materials, application programming interfaces +(APIs), and other similar developer materials (including API +Information). + +37 “Territory” (a) means the country, +countries or jurisdiction(s) specified in the License Identification, or +(b) if there is no such License Identification, or no country or +jurisdiction is specified in the License Identification, means the +country in which Licensee acquires a license to the Autodesk Materials. +If the License Identification specifies, or Licensee acquires the +Autodesk Materials in, a member country of the European Union or the +European Free Trade Association, Territory means all the countries of +the European Union and the European Free Trade Association. + +38\. “Uninstall” means to remove or +disable a copy of Autodesk Materials from a hard drive or other storage +medium through any means or otherwise to destroy or make unusable a copy +of the Autodesk Materials. + +39\. “Upgrade” means a full commercial +version of Licensed Materials (a) which is a successor to or substitute +for a qualifying prior release (and may incorporate error corrections, +patches, service packs and updates and upgrades to, and may enhance or +add to the features or functionality of, the prior release) or different +release of Licensed Materials, (b) is provided to a Licensee who has +previously licensed the applicable qualifying prior or different release +from Autodesk and (c) for which Autodesk generally charges a separate +fee or makes available solely to customers under a Relationship Program. +Whether Autodesk Materials are an Upgrade may be specified in the +applicable License Identification. Whether Autodesk Materials are an +Upgrade and whether Licensee has met the qualifications to license +particular Autodesk Materials as an Upgrade are determined by Autodesk. + +40\. “User Documentation” means the +explanatory or instructional materials for Software or Supplemental +Materials (including materials regarding use of the Software or +Supplemental Materials), whether in printed or electronic form, that +Autodesk or a Reseller incorporates in the Software or Supplemental +Materials (or the packaging for the Software or Supplemental Materials) +or otherwise provides to its customers when or after such customers +license, acquire or Install the Software or Supplemental Materials. + +41\. “VPN Requirements” means (i) the +Licensed Materials are Accessed through a secure virtual private network +(“VPN”); (ii) the maximum number of concurrent users Accessing the +Licensed Materials (on a Networked Basis or through the VPN) does not +exceed the Permitted Number at any time; (iii) all copies of the +Licensed Materials are Installed and Accessed exclusively in conjunction +with the technical protection device (if any) supplied with the Licensed +Materials; and (iv) the VPN connection is secure and complies with +current industry standard encryption and protection mechanisms. + +**Exhibit B** + +**License Types** + +1\. Stand-alone (Individual) License. If +the License Identification identifies the License Type as a “Stand-alone +License” or as an “Individual License," Licensee may Install a single +primary copy of the specific release of the Licensed Materials +designated in the applicable License Identification on one (1) Computer, +on a Stand-alone Basis, and permit Access to such primary copy of the +Licensed Materials solely by Licensee’s Personnel, and solely for +Licensee’s Internal Business Needs. Licensee may also Install a single +additional copy of such Licensed Materials on one (1) additional +Computer, on a Stand-alone Basis; provided that (i) such additional copy +of the Licensed Materials is Accessed solely by the same person as the +primary copy; (ii) such person is Licensee (if Licensee is an +individual) or an employee of Licensee; (iii) such person Accesses the +additional copy solely to perform work while away from that person’s +usual work location and solely for Licensee’s Internal Business Needs; +and (iv) the primary and additional copies are not Accessed at the same +time. Stand-alone (Individual) License is for a perpetual term, except +as otherwise provided in this Agreement. + +2\. Multi-seat Stand-alone License. If +the License Identification identifies the License Type as a “Multi-seat +Stand-alone License," Licensee may Install primary copies of the +specific release of the Licensed Materials designated in the applicable +License Identification on up to the Permitted Number of Computers, on a +Stand-alone Basis, and permit Access to such copies of the Licensed +Materials solely by Licensee’s Personnel, and solely for Licensee’s +Internal Business Needs. Licensee may also Install additional copies of +such Licensed Materials on additional Computers in an amount up to the +Permitted Number of Computers, on a Stand-alone Basis; provided that (i) +each additional copy of such Licensed Materials is Accessed solely by +the same person as the primary copy; (ii) such person is Licensee (if +Licensee is an individual) or an employee of Licensee; (iii) such person +Accesses the additional copy solely to perform work while away from that +person’s usual work location and solely for Licensee’s Internal Business +Needs; and (iv) the primary and additional copies are not Accessed at +the same time. Multi-seat Stand-alone License is for a perpetual term, +except as otherwise provided in this Agreement. + +3\. Network License. If the License +Identification identifies the License Type for the Licensed Materials as +a “Network License," Licensee may Install copies of the specific release +of the Licensed Materials designated in the applicable License +Identification on a Computer and permit Access to such Licensed +Materials on multiple Computers, on a Networked Basis, solely by +Licensee’s Personnel, solely for Licensee’s Internal Business Needs, +only so long as the maximum number of concurrent Authorized Users does +not exceed the Permitted Number of Authorized Users or other limits +imposed by the Autodesk License Manager (if any). Licensee may, at +Licensee’s option, also Install the Licensed Materials on a Hot Backup +Server; provided that Licensee may Access the Licensed Materials on the +Hot Backup Server only during the time period when, and solely for as +long as, the primary Installed copy of the Licensed Materials is +inoperable and only subject to the same terms and conditions as are +applicable to the primary Installed copy. A “Hot Backup Server” means a +file server Computer that has a second copy of the Software and +Supplemental Materials Installed but that is not permitted to be +Accessible except when the primary Installed copy of the Software and +Supplemental Materials are inoperable and only for so long as such +primary Installed copy is inoperable. A Network License is for a +perpetual term, except as otherwise provided in this Agreement. + +4\. Educational Stand-alone (Individual) +License.  If the License Identification identifies the License +Type as an “Educational Stand-alone (Individual) License,” an +Educational Licensee may Install a copy of the specific release of the +Licensed Materials designated in the applicable License Identification +on one (1) Computer, subject to certain functional limitations described +in Section 6.3 (Affected Data), on a Stand-alone Basis, and permit +Access to such copy of the Licensed Materials solely by an Educational +Licensee solely for Educational Purposes.  An Educational Stand-alone +(Individual) License is for a fixed term specified in the applicable +License Identification or, if no such term is specified, the term is +thirty-six (36) months from Installation or as otherwise authorized in +writing by Autodesk. + +5\. Educational Multi-seat Stand-alone +License. If the License Identification identifies the License +Type as an “Educational Multi-seat Stand-alone License,” an Educational +Licensee may Install copies of the specific release of the Licensed +Materials designated in the applicable License Identification on up to +the Permitted Number of Computers, subject to certain functional +limitations described in Section 6.3 (Affected Data), on a Stand-alone +Basis, and permit Access to such copies of the Licensed Materials solely +by Educational Licensees solely for Educational Purposes. An Educational +Multi-seat Stand-alone License is for a fixed term specified in the +applicable License Identification or, if no such term is specified, the +term is thirty-six (36) months from Installation or as otherwise +authorized in writing by Autodesk. + +6\. Educational Network License. If the +License Identification identifies the License Type as an “Educational +Network License,” an Educational Licensee may Install copies of the +specific release of the Licensed Materials designated in the applicable +License Identification on a single file server Computer, subject to +certain functional limitations described in Section 6.3 (Affected Data), +and Access such Licensed Materials on multiple Computers on a Networked +Basis, and permit Access to such copies of the Licensed Materials solely +by Educational Licensees solely for Educational Purposes, only so long +as the maximum number of concurrent Authorized Users does not exceed the +Permitted Number of Authorized Users. An Educational Network License is +for a fixed term specified in the applicable License Identification or, +if no such term is specified, the term is thirty-six (36) months from +Installation or as otherwise authorized in writing by Autodesk. + +7\. Personal Learning License. If the +License Identification identifies the License Type as a “Personal +Learning License”, Licensee may Install a copy of the specific release +of the Licensed Materials designated in the applicable License +Identification on one (1) Computer, subject to certain functional +limitations described in Section 6.3 (Affected Data), on a Stand-alone +Basis, and permit Access to such copy of the Licensed Materials solely +by Licensee, as an individual, solely for Personal Learning Purposes and +only at and from locations that are not labs or classrooms and are not +operated for commercial, professional or for-profit purposes. A Personal +Learning License Stand-alone is for a fixed term specified in the +applicable License Identification. If no such term is specified, the +term is thirteen (13) months from Installation. + +8\. Evaluation/Demonstration/Trial. If +Autodesk identifies the License Type as a “demonstration”, “evaluation”, +“trial,” “not for resale” or “NFR” version (each, an “Evaluation +License”) in the applicable License Identification, Licensee may +Install a copy of the specific release of the Licensed Materials +designated in the applicable License Identification on one (1) Computer, +subject to certain functional limitations described in Section 6.3 +(Affected Data), on a Stand-alone Basis, and permit Access to such copy +of the Licensed Materials, solely by Licensee’s Personnel, solely for +Evaluation Purposes, only so long as the maximum number of concurrent +Authorized Users does not exceed one (1), and only from Licensee’s work +location. An Evaluation License is for a fixed term specified in the +applicable License Identification, or if no such term is specified, the +term is thirty (30) days from Installation or as otherwise authorized in +writing by Autodesk. + +9\. Fixed Term/Limited Duration/Rental +License. If Autodesk identifies a license in the applicable +License Identification as being for a specified period or limited +duration or as having a fixed term or as a rental license, Licensee’s +right to Install and Access the Licensed Materials will continue only +for the period, duration or term specified in the License +Identification. Such Installation and Access will be in accordance with +and subject to the applicable License Type and Permitted Number. If +Autodesk identifies a license in the applicable License Identification +as being for a specified period or limited duration, or as having a +fixed term, or a rental license but no period, duration or term is +specified in the License Identification, the period, duration or term +will be ninety (90) days from Installation (or the period specified in +Sections B.6 (Educational Network License), B.7 (Personal Learning +License) or B.8 (Evaluation/Demonstration/Trial) of this Exhibit B with +respect to the licenses described in those sections). + +10\. Session Specific Network License. If +the License Identification identifies the License Type as a "Session +Specific Network License", Licensee may install one (1) copy of the +specific release of the Licensed Materials designated in the applicable +License Identification on a Computer and permit Access to such Licensed +Materials from multiple Computers through a Supported Virtualization +Application, on a Networked Basis, solely by Licensee's Personnel, +solely for Licensee's Internal Business needs, only so long as the +maximum number of concurrent Sessions does not exceed the Permitted +Number or other limits imposed by the Autodesk License Manager tool (if +any). For purposes of this Session Specific Network License, (a) a +“Session” is defined as a single interactive information exchange +between two Computers that are connected through a Supported +Virtualization Application, and (b) “Supported Virtualization +Application(s)” are those third party virtualization applications or +methods that are specifically identified as supported by Autodesk in the +User Documentation for the Licensed Materials. With respect to the +applicable Supported Virtualization Application, Licensee agrees to +activate any available session tracking mechanism, not disable any such +session tracking mechanism and to retain all records generated by such +session tracking mechanism. A Session Specific Network License is for a +perpetual term, except as otherwise provided in this Agreement. diff --git a/Packages/com.autodesk.fbx/Third Party Notices.md.meta b/Packages/com.autodesk.fbx/Third Party Notices.md.meta new file mode 100644 index 0000000000..9a74d2e457 --- /dev/null +++ b/Packages/com.autodesk.fbx/Third Party Notices.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2dc2d47e38bdfa54e92fdc76c8045751 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/ValidationExceptions.json b/Packages/com.autodesk.fbx/ValidationExceptions.json new file mode 100644 index 0000000000..2b07ab2e93 --- /dev/null +++ b/Packages/com.autodesk.fbx/ValidationExceptions.json @@ -0,0 +1,10 @@ +{ + "ErrorExceptions": [ + { + "ValidationTest": "API Validation", + "ExceptionMessage": "Assembly \"FbxBuildTestAssets\" no longer exists or is no longer included in build. This change requires a new major version.", + "PackageVersion": "4.1.0" + } + ], + "WarningExceptions": [] +} \ No newline at end of file diff --git a/Packages/com.autodesk.fbx/ValidationExceptions.json.meta b/Packages/com.autodesk.fbx/ValidationExceptions.json.meta new file mode 100644 index 0000000000..6ff26143ab --- /dev/null +++ b/Packages/com.autodesk.fbx/ValidationExceptions.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5e02e887a439ddc428b157979d1d2095 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/com.autodesk.fbx/package.json b/Packages/com.autodesk.fbx/package.json new file mode 100644 index 0000000000..f5648c8d0b --- /dev/null +++ b/Packages/com.autodesk.fbx/package.json @@ -0,0 +1,17 @@ +{ + "description": "This package provides Unity C# bindings to the Autodesk\u00ae FBX\u00ae SDK.", + "displayName": "Autodesk FBX SDK for Unity", + "keywords": [ + "fbx", + "animation", + "modeling", + "maya", + "max" + ], + "name": "com.autodesk.fbx", + "unity": "2018.4", + "version": "4.1.0", + "author": { + "name": "Unity" + } +} diff --git a/Packages/com.autodesk.fbx/package.json.meta b/Packages/com.autodesk.fbx/package.json.meta new file mode 100644 index 0000000000..87b32a00a6 --- /dev/null +++ b/Packages/com.autodesk.fbx/package.json.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a4f05ac46033d40eb9bbd94a41250cb8 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/manifest.json b/Packages/manifest.json index 5f36eb190b..a17b5e4516 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -4,7 +4,7 @@ "com.unity.2d.tilemap": "1.0.0", "com.unity.editorcoroutines": "0.0.2-preview.1", "com.unity.formats.usd": "1.0.3-preview.2", - "com.unity.ide.rider": "1.1.4", + "com.unity.ide.rider": "1.2.1", "com.unity.ide.vscode": "1.2.3", "com.unity.multiplayer-hlapi": "1.0.8", "com.unity.performance.profile-analyzer": "0.6.0-preview.1", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index f41e847da2..8918e14a9a 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -1,5 +1,11 @@ { "dependencies": { + "com.autodesk.fbx": { + "version": "file:com.autodesk.fbx", + "depth": 0, + "source": "embedded", + "dependencies": {} + }, "com.unity.2d.sprite": { "version": "1.0.0", "depth": 0, @@ -36,7 +42,7 @@ "url": "https://packages.unity.com" }, "com.unity.ide.rider": { - "version": "1.1.4", + "version": "1.2.1", "depth": 0, "source": "registry", "dependencies": { diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 22079d411c..507c54c622 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -525,6 +525,7 @@ PlayerSettings: switchTitleNames_12: switchTitleNames_13: switchTitleNames_14: + switchTitleNames_15: switchPublisherNames_0: switchPublisherNames_1: switchPublisherNames_2: @@ -540,6 +541,7 @@ PlayerSettings: switchPublisherNames_12: switchPublisherNames_13: switchPublisherNames_14: + switchPublisherNames_15: switchIcons_0: {fileID: 0} switchIcons_1: {fileID: 0} switchIcons_2: {fileID: 0} @@ -555,6 +557,7 @@ PlayerSettings: switchIcons_12: {fileID: 0} switchIcons_13: {fileID: 0} switchIcons_14: {fileID: 0} + switchIcons_15: {fileID: 0} switchSmallIcons_0: {fileID: 0} switchSmallIcons_1: {fileID: 0} switchSmallIcons_2: {fileID: 0} @@ -570,6 +573,7 @@ PlayerSettings: switchSmallIcons_12: {fileID: 0} switchSmallIcons_13: {fileID: 0} switchSmallIcons_14: {fileID: 0} + switchSmallIcons_15: {fileID: 0} switchManualHTML: switchAccessibleURLs: switchLegalInformation: @@ -632,6 +636,8 @@ PlayerSettings: switchSocketInitializeEnabled: 1 switchNetworkInterfaceManagerInitializeEnabled: 1 switchPlayerConnectionEnabled: 1 + switchUseMicroSleepForYield: 1 + switchMicroSleepForYieldTime: 25 ps4NPAgeRating: 12 ps4NPTitleSecret: ps4NPTrophyPackPath: @@ -706,6 +712,31 @@ PlayerSettings: ps4attribEyeToEyeDistanceSettingVR: 0 ps4IncludedModules: [] ps4attribVROutputEnabled: 0 + ps5ParamFilePath: + ps5VideoOutPixelFormat: 0 + ps5VideoOutInitialWidth: 1920 + ps5VideoOutOutputMode: 1 + ps5BackgroundImagePath: + ps5StartupImagePath: + ps5Pic2Path: + ps5StartupImagesFolder: + ps5IconImagesFolder: + ps5SaveDataImagePath: + ps5SdkOverride: + ps5BGMPath: + ps5ShareOverlayImagePath: + ps5NPConfigZipPath: + ps5Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps5UseResolutionFallback: 0 + ps5UseAudio3dBackend: 0 + ps5ScriptOptimizationLevel: 2 + ps5Audio3dVirtualSpeakerCount: 14 + ps5UpdateReferencePackage: + ps5disableAutoHideSplash: 0 + ps5OperatingSystemCanDisableSplashScreen: 0 + ps5IncludedModules: [] + ps5SharedBinaryContentLabels: [] + ps5SharedBinarySystemFolders: [] monoEnv: splashScreenBackgroundSourceLandscape: {fileID: 0} splashScreenBackgroundSourcePortrait: {fileID: 0} @@ -726,7 +757,7 @@ PlayerSettings: webGLThreadsSupport: 0 webGLWasmStreaming: 0 scriptingDefineSymbols: - 1: USD_SUPPORTED;UNITY_HAS_GOOGLEVR;TILT_BRUSH + 1: USD_SUPPORTED;UNITY_HAS_GOOGLEVR;TILT_BRUSH;FBX_SUPPORTED;FBXSDK_RUNTIME 7: TILT_BRUSH;OCULUS_SUPPORTED 14: USD_SUPPORTED;UNITY_HAS_GOOGLEVR;TILT_BRUSH platformArchitecture: @@ -742,6 +773,7 @@ PlayerSettings: managedStrippingLevel: {} incrementalIl2cppBuild: iPhone: 1 + suppressCommonWarnings: 1 allowUnsafeCode: 1 additionalIl2CppArgs: scriptingRuntimeVersion: 1 diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt index 1aeef8d90d..ba35eb1ccc 100644 --- a/ProjectSettings/ProjectVersion.txt +++ b/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ -m_EditorVersion: 2019.4.24f1 -m_EditorVersionWithRevision: 2019.4.24f1 (5da6f0345e82) +m_EditorVersion: 2019.4.25f1 +m_EditorVersionWithRevision: 2019.4.25f1 (01a0494af254) diff --git a/README.md b/README.md index 1821f7a42c..c7140d203f 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,36 @@ # Open Brush - A Tilt Brush fork +[![Support us on Open Collective!](https://img.shields.io/opencollective/all/icosa?logo=open-collective&label=Support%20us%20on%20Open%20Collective%21)](https://opencollective.com/icosa) [![All GitHub releases](https://img.shields.io/github/downloads/icosa-gallery/open-brush/total?label=GitHub%20downloads)](https://github.com/icosa-gallery/open-brush/releases/latest) [![Twitter](https://img.shields.io/badge/follow-%40IcosaGallery-blue.svg?style=flat&logo=twitter)](https://twitter.com/IcosaGallery) [![Discord](https://discordapp.com/api/guilds/783806589991780412/embed.png?style=shield)](https://discord.gg/W7NCEYnEfy) -[![Open Collective backers and sponsors](https://img.shields.io/opencollective/all/icosa?logo=open-collective)](https://opencollective.com/icosa) -## Current Version: `0.3.0` -We hope to help maintain Tilt Brush. +**Current Version: ![Current Version](https://img.shields.io/github/v/release/icosa-gallery/open-brush)** + +**Pre-release Version: ![Prerelease Version](https://img.shields.io/github/v/release/icosa-gallery/open-brush?include_prereleases&label=prerelease)** + +Open brush is a fork of Tilt Brush, a room-scale 3D-painting virtual-reality application available from Google, originally developed by Skillman & Hackett. We hope to maintain and improve upon Tilt Brush as a community-led project, free forever! + As the original repo is archived we cannot submit PRs, so feel free to submit them here! [Please join the Icosa Discord and get involved!](https://discord.com/invite/W7NCEYnEfy) -[Trello](https://trello.com/b/jItetqYe/open-brush) +[Open Brush Trello](https://trello.com/b/jItetqYe/open-brush) [List of tutorials, write-ups and other things from the community](https://docs.google.com/document/d/1gjoYp4y-1qlE3a7fvXVxGR3ioj3nMfgprmTHQ-bpq0k/) -[Support us on Open Collective](https://opencollective.com/icosa) +**[Support us on Open Collective!](https://opencollective.com/icosa)** ## Downloads - -- [Itch.io Store](https://openbrush.itch.io/openbrush) +### Stores (Did we mention it's free?) +- [itch.io](https://openbrush.itch.io/openbrush) - [SideQuest](https://sidequestvr.com/app/2852/open-brush) +- [Oculus App Lab](https://www.oculus.com/experiences/quest/3600360710032222) +- [Oculus Rift](https://www.oculus.com/experiences/rift/5227489953989768) +- [Steam](https://store.steampowered.com/app/1634870/Open_Brush) +- [Viveport Desktop](https://www.viveport.com/f1f3d00b-cf8a-443f-825e-4fea2dd3b005) +### GitHub - [Formal GitHub Releases](https://github.com/icosa-gallery/open-brush/releases/latest) - [Bleeding Edge GitHub Releases](#bleeding-edge-releases) -### Currently we are: -* Getting Open Brush to work with the Poly replacement, [Icosa](https://github.com/icosa-gallery). -* Looking at modding support (custom brushes!) - -See our [Trello](https://trello.com/b/jItetqYe/open-brush) board for more information. ## Acknowledgements * Thank you to the Tilt Brush developers for your amazing work! @@ -41,15 +45,9 @@ These builds share a save location with the official Open Brush release, but can Note that the "experimental" builds contain experimental brushes, and sketches created using the experimental brushes may appear differently when loaded in the official build of Open Brush! -In addition, there are also versions created for Linux (SteamVR and Monoscopic), OS X (Monoscopic only), and Windows Monoscopic that are listed as "Artifacts" of the Github Actions, however, these are intended only for developers, and should not be used by general users. You can find them by browsing to the [commit list](https://github.com/icosa-gallery/open-brush/commits/main), and then clicking on the green check mark below the title (next to the XXX committed XXX ago), and scroll to the build you want, and click on **Details**. Then, towards the upper right corner, click on **Artifacts (6)** and click on the name of the build. Unzip the downloaded file, and either run the executable (Desktop SteamVR/Monoscopic) or install the apk (Android Oculus) using `adb install com.Icosa.OpenBrush-github.apk`. Note that if you download a Mac OS X build, you'll need to run `xattr -d com.apple.quarantine /path/to/OpenBrush-github.app` prior to be able to launch the app, as it is not signed with Apple developer keys. ---- - -# Tilt Brush README +In addition, there are also versions created for Linux (SteamVR and Monoscopic), OS X (Monoscopic only), and Windows Monoscopic that are listed as "Artifacts" of the Github Actions, however, these are intended only for developers, and should not be used by general users. You can find them by browsing to the [commit list](https://github.com/icosa-gallery/open-brush/commits/main), and then clicking on the green check mark below the title (next to the XXX committed XXX ago), and scroll to the build you want, and click on **Details**. Then, towards the upper right corner, click on **Artifacts (6)** and click on the name of the build. Unzip the downloaded file, and either run the executable (Desktop SteamVR/Monoscopic) or install the apk (Android Oculus) using `adb install com.Icosa.OpenBrush-github.apk`. Note that if you download a Mac OS X build, you'll need to run `xattr -d com.apple.quarantine /path/to/OpenBrush-github.app` prior to be able to launch the app, as it is not signed with Apple developer keys. -Tilt Brush is licensed under Apache 2.0. It is not an officially supported -Google product. See the [LICENSE](LICENSE) file for more details. - -## Trademarks +## Important note from the original Tilt Brush README The Tilt Brush trademark and logo (“Tilt Brush Trademarks”) are trademarks of Google, and are treated separately from the copyright or patent license grants @@ -60,27 +58,20 @@ approved in advance. For more information, read the [Tilt Brush Brand Guidelines](BRAND_GUIDELINES.md). -## Building the application +--- -Get the Tilt Brush open-source application running on your own devices. +# Building the application + +Get the Open Brush open-source application running on your own devices. ### Prerequisites -* [Unity 2018.4.11f1](unityhub://2018.4.11f1/7098af2f11ea) (Unity 2019.4.18f1 for this fork) +* [Unity 2019.4.25f1](unityhub://2019.4.25f1/01a0494af254) * [SteamVR](https://store.steampowered.com/app/250820/SteamVR/) * [Python 3](https://www.python.org/downloads/) (Optional — needed only if you wish to run the scripts in the `Support/bin` directory) Tested with Python 3.8. -### Changing the application name - -_Tilt Brush_ is a Google trademark. If you intend to publish a cloned version of -the application, you are required to choose a different name to distinguish it -from the official version. Before building the application, go into `App.cs` and -the Player settings to change the company and application names to your own. - -Please see the [Tilt Brush Brand Guidelines](BRAND_GUIDELINES.md) for more details. - ### Running the application in the Unity editor Follow these steps when running the application for the first time: @@ -98,10 +89,10 @@ These steps have been tested with Release 1.0.54. ### Building the application from the Unity editor -Although it's possible to build Tilt Brush using the standard Unity build tools, +Although it's possible to build Open Brush using the standard Unity build tools, we recommend using a build script to ensure the application builds with the correct settings. To run this script, go to **Tilt** > **Build** > **Do Build**, -or build from the Tilt Brush build window by navigating to **Tilt** > +or build from the Open Brush build window by navigating to **Tilt** > **Build** > **Build Window**. Note: The application may take a while to build the first time. @@ -114,19 +105,14 @@ various build options. ### Additional features -You should be able to get the basic version of Tilt Brush up and running very +You should be able to get the basic version of Open Brush up and running very quickly. The following features will take a little more time. * [Google service API support](#google-service-api-support) * [Enabling native Oculus support](#enabling-native-oculus-support) * [Sketchfab support](#sketchfab-support) -* [\*.fbx file support](#fbx-file-support) * [Offline rendering support](#offline-rendering-support) -**Note:** Uploading to Poly has been removed completely and cannot be added back -in, because it uses an internal Google API. Download from Poly can still be -enabled. - ## Systems that were replaced or removed when open-sourcing Tilt Brush Some systems in Tilt Brush were removed or replaced with alternatives due to @@ -147,7 +133,7 @@ open-source licensing issues. These are: * **Tilt Shift**. The official Tilt Brush app uses modified versions of the Tilt Shift effect that came with the standard assets in earlier versions of Unity. These have been replaced with a modified version of - [Tilt shift by underscorediscovery](https://gist.github.com/underscorediscovery/10324388). + [Tilt shift by ruby0x1](https://gist.github.com/ruby0x1/10324388). ## Generating Secrets file Credentials for services such as Google and Sketchfab are stored in a `SecretsConfig` scriptable object. This has been ignored in the git config for safety. To add it back: @@ -170,7 +156,6 @@ Follow these steps when enabling Google service APIs: 1. Enable the following APIs and services: * **YouTube Data API v3** — for uploading videos to YouTube - * **Poly API** — for accessing the Poly model library * **Google Drive API** — for backup to Google Drive * **People API** — for username and profile picture @@ -221,10 +206,10 @@ Follow these steps to store the Google API Key and credential data: Note: _Tilt Brush_ is a Google trademark. If you intend to publish a cloned version of the application, you are required to -[choose a different name](#changing-the-application-name) to distinguish it from +choose a different name to distinguish it from the official version. -Tilt Brush targets SteamVR instead of Oculus by default. Follow these steps to +Open Brush targets SteamVR instead of Oculus by default. Follow these steps to enable native Oculus support: 1. Enable the Oculus desktop package in the Package Manager. @@ -255,6 +240,8 @@ Follow these steps to build your app for Oculus Quest: `../Builds/OculusMobile_Release_OpenBrush_FromGui/`. 1. Run `adb install com.Icosa.OpenBrush.apk`. +**Note:** Add your new scene files' names to the list **scenes** defined in the **DoBuild** method (string[] scenes = {...} ) in `BuildTiltBrush.cs` under `../Assets/Editor/` before building. If you didn't, your app won't be built with those scenes even if they are put on `Scenes In Build` in `Build Settings`. + ### Publishing to Oculus stores Follow these steps to publish to Oculus stores: @@ -267,9 +254,9 @@ Follow these steps to publish to Oculus stores: have their own entries. 1. Put the app IDs in the `Client ID` field for each. -## Tilt Brush intro sketch +## Open Brush intro sketch -The Tilt Brush intro sketch uses some slightly modified shaders to produce the +The Open Brush intro sketch uses some slightly modified shaders to produce the animating-in effect while the sketch fades in. For faster loading, the intro sketch is turned into a `*.prefab` file beforehand. Only the shaders used in the intro sketch have been converted to work with the introduction. @@ -286,7 +273,7 @@ intro sketch have been converted to work with the introduction. Follow these steps to replace or alter the intro sketch: -1. Make sure the sketch of your choice is already loaded. Run Tilt Brush in the +1. Make sure the sketch of your choice is already loaded. Run Open Brush in the Unity Editor. 1. Select **Tilt** > **Convert To Intro Materials** in the main Unity menu. This converts the materials in the sketch to the intro versions. \ @@ -309,7 +296,7 @@ Follow these steps to replace or alter the intro sketch: You may want to have a pared-down version of the intro sketch for the mobile version of the app. Stroke simplification is located in the **Settings** menu -inside Tilt Brush. +inside Open Brush. ## Sketchfab support @@ -317,17 +304,15 @@ Follow these steps to enable Sketchfab support: 1. [Contact Sketchfab](https://sketchfab.com/developers/oauth) for a client ID and secret before you can upload to their service. + + - The **Application Name** will probably need to be changed + - The **Grant Type** should be **Authorization Code** + - The **URI** should be **http://localhost:40074/sketchfab** 1. Follow the steps to [create your secrets file](#-Generating-Secrets-file). Add a new item to the **Secrets** field. 1. Add the client ID and secret to the field. 1. Set the service as **Sketchfab**. Leave the API key blank. -## FBX file support - -You will need to build C# wrappers for the Autodesk FBX (the Autodesk filebox -format) SDK in order to import or export FBX and OBJ files in the app. See -[Support/fbx/README.md](Support/fbx/README.md) for details. - ### Video support bug fix If you add video support, you may encounter a bug where the "Looking for audio" @@ -349,9 +334,9 @@ angled too far. Fix this by doing the following: ## Offline rendering support -When the user records a video from a saved sketch in Tilt Brush, a `.bat` file +When the user records a video from a saved sketch in Open Brush, a `.bat` file is generated next to the `.mp4` for offline rendering support. This `.bat` file -requires the path to the executable of Tilt Brush. The code for writing out this +requires the path to the executable of Open Brush. The code for writing out this path to the file has been removed. Follow these steps to restore the path: @@ -372,7 +357,7 @@ panel while disabling the intro sequence. **New features and brushes that you find in experimental mode may not work as expected.** Sketches that use experimental features and brushes won't work on -Poly or Sketchfab, and may break if loaded into production versions of Tilt +Icosa or Sketchfab, and may break if loaded into production versions of Tilt Brush. ### Turning on experimental mode @@ -382,7 +367,7 @@ Follow these steps to turn on experimental mode: 1. Find the Config object in the main scene by going to **App** > **Config**. 1. Turn on the **Is Experimental** flag. -The Tilt Brush build system will then set up the experimental flag as needed +The Open Brush build system will then set up the experimental flag as needed when you make a build. ### Making your code experimental diff --git a/Support/Python/unitybuild/main.py b/Support/Python/unitybuild/main.py index 6e10b1a3db..476408f572 100644 --- a/Support/Python/unitybuild/main.py +++ b/Support/Python/unitybuild/main.py @@ -246,6 +246,7 @@ def iter_editors_and_versions(): # pylint: disable=too-many-branches # Since we don't have Unity hub support (commented out above because headless isn't # headless), look for where it installs directly app_list.extend(glob.glob("/Applications/Unity/*/Unity.app")) + app_list.extend(glob.glob("/Applications/Unity/Hub/Editor/*/Unity.app")) for editor_dir in app_list: exe = os.path.join(editor_dir, "Contents/MacOS/Unity") editor_data_dir = os.path.join(editor_dir, "Contents") @@ -309,6 +310,14 @@ def get_editor_unity_version(editor_app, editor_data_dir): % (editor_data_dir, ret) ) return ret + for m in re.finditer(r"Unity/Hub/Editor/(2019)\.(\d+)\.(\d+)", editor_data_dir): + major, minor, point = m.groups() + ret = (major, minor, point) + print( + "WARNING: %s using fallback to determine Unity version %s" + % (editor_data_dir, ret) + ) + return ret raise LookupError("%s: Cannot determine Unity version" % editor_data_dir)