Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feature/dome-camera
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Apr 3, 2024
2 parents a975193 + 234e1f7 commit 63e4db3
Show file tree
Hide file tree
Showing 63 changed files with 30,932 additions and 267 deletions.
81 changes: 64 additions & 17 deletions .github/workflows/build.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.0.0
- uses: actions/setup-python@v5.1.0
with:
python-version: '3.12'
- uses: actions/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.34.0
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/psf/black
rev: 24.2.0
rev: 24.3.0
hooks:
- id: black
files: ^Support/
Expand All @@ -16,7 +16,7 @@ repos:
- id: flake8
files: ^Support/
- repo: https://github.com/PyCQA/pylint.git
rev: v3.0.3
rev: v3.1.0
hooks:
- id: pylint
name: pylint
Expand Down
Binary file modified Assets/AddressableAssetsData/iOS/addressables_content_state.bin
Binary file not shown.
53 changes: 51 additions & 2 deletions Assets/Editor/BuildTiltBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.Build.Reporting;
#if UNITY_IPHONE
#if UNITY_IOS
using UnityEditor.iOS.Xcode;
#endif
using UnityEditor.SceneManagement;
Expand Down Expand Up @@ -924,6 +924,54 @@ public void Dispose()
}
}

class TempSetPlayerSettings : IDisposable
{
private BuildTarget m_Target;
private UIOrientation m_OrientationSettings;
private iOSTargetDevice m_iOSTargetDevice;
private Texture2D[] m_Icons;

public TempSetPlayerSettings(TiltBuildOptions tiltOptions)
{
m_Target = tiltOptions.Target;
m_OrientationSettings = PlayerSettings.defaultInterfaceOrientation;
m_iOSTargetDevice = PlayerSettings.iOS.targetDevice;
m_Icons = PlayerSettings.GetIcons(UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(TargetToGroup(m_Target)), IconKind.Any);

switch (tiltOptions.XrSdk)
{
case XrSdkMode.Zapbox:
PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait;
PlayerSettings.iOS.targetDevice = iOSTargetDevice.iPhoneOnly;
var zapboxIcon = AssetDatabase.LoadAssetAtPath<Texture2D>("Assets/Textures/Trademarked/TiltBrushLogoZapbox.png");

Texture2D[] newIcons = { zapboxIcon };

var buildTarget = UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(TargetToGroup(m_Target));

PlayerSettings.SetIcons(buildTarget, newIcons, IconKind.Any);
#if UNITY_IOS
PlayerSettings.SetIcons(buildTarget, newIcons, IconKind.Notification);
PlayerSettings.SetIcons(buildTarget, newIcons, IconKind.Settings);
PlayerSettings.SetIcons(buildTarget, newIcons, IconKind.Spotlight);
PlayerSettings.SetIcons(buildTarget, newIcons, IconKind.Notification);
PlayerSettings.SetIcons(buildTarget, newIcons, IconKind.Store);
#endif
break;
default:
break;
}
}

public void Dispose()
{
PlayerSettings.defaultInterfaceOrientation = m_OrientationSettings;
PlayerSettings.iOS.targetDevice = m_iOSTargetDevice;
PlayerSettings.SetIcons(UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(TargetToGroup(m_Target)), m_Icons, IconKind.Any);
AssetDatabase.SaveAssets();
}
}

class TempSetScriptingBackend : IDisposable
{
private ScriptingImplementation m_prevbackend;
Expand Down Expand Up @@ -1503,6 +1551,7 @@ public static void DoBuild(TiltBuildOptions tiltOptions)
using (var unused6 = new TempSetBundleVersion(target, App.Config.m_VersionNumber, stamp))
using (var unused10 = new TempSetAppNames(target, tiltOptions.Description))
using (var unused7 = new TempSetXrPlugin(tiltOptions))
using (var unused15 = new TempSetPlayerSettings(tiltOptions))
using (var unused13 = new TempSetOpenXrFeatureGroup(tiltOptions))
using (var unused9 = new RestoreFileContents(
Path.Combine(Path.GetDirectoryName(Application.dataPath),
Expand Down Expand Up @@ -1794,7 +1843,7 @@ public static void OnPostProcessBuild(BuildTarget target, string path)
{
// TODO: is it possible to embed loose files on iOS?
looseFilesDest = null;
#if UNITY_IPHONE
#if UNITY_IOS
string pbxPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";

PBXProject project = new PBXProject();
Expand Down
164 changes: 0 additions & 164 deletions Assets/Editor/SerializedPropertyReferenceDrawer.cs

This file was deleted.

11 changes: 0 additions & 11 deletions Assets/Editor/SerializedPropertyReferenceDrawer.cs.meta

This file was deleted.

82 changes: 82 additions & 0 deletions Assets/Manifest_Zapbox.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 23720096ebad012489fb3db6e44e0a4c, type: 3}
m_Name: Manifest_Zapbox
m_EditorClassIdentifier:
Brushes:
- {fileID: 11400000, guid: c80c2ea05a3d85e48858a322a18cf5bb, type: 2}
- {fileID: 11400000, guid: 816add3f326839c4cafce8bfc4a7e26b, type: 2}
- {fileID: 11400000, guid: 7a3a9d5ee2e492c49b1146ed03806398, type: 2}
- {fileID: 11400000, guid: a3243d2ad2f1f144d8c096c7a7f080f0, type: 2}
- {fileID: 11400000, guid: 79aad858cfe754d4bad6bb41091669d5, type: 2}
- {fileID: 11400000, guid: 4fff8e60f5ea7a843b57a7e35501241a, type: 2}
- {fileID: 11400000, guid: 4e0276a2779e02649886e0eabd8cc6f0, type: 2}
- {fileID: 11400000, guid: f2a3ea577216f00419871f50d71cc885, type: 2}
- {fileID: 11400000, guid: d7e129b9879e8b3499ccc4d81ca68ee2, type: 2}
- {fileID: 11400000, guid: cda3391ff768d1b49ab892abdcbe3c56, type: 2}
- {fileID: 11400000, guid: 695c0f01b9a7e91449b541ab1b30fc4f, type: 2}
- {fileID: 11400000, guid: c969cee8911aa4d4293ee395f822a70c, type: 2}
- {fileID: 11400000, guid: b477bd8a0ed72b643833f1c162ac6d0a, type: 2}
- {fileID: 11400000, guid: 659158fcdc71ae74c95d543604d4e9a2, type: 2}
- {fileID: 11400000, guid: eb608f68fb3036b47be357a021ed7618, type: 2}
- {fileID: 11400000, guid: b3384ba6cddfeb64ba4b7d4abed9a3e8, type: 2}
- {fileID: 11400000, guid: 2264f93e06f07674bb5327af480f9ffb, type: 2}
- {fileID: 11400000, guid: 700f3aa89a7c23848b8aea028905dd8c, type: 2}
- {fileID: 11400000, guid: 2b446bb08278e5440a49b5e6cf6abdee, type: 2}
- {fileID: 11400000, guid: e0abbc800f80e85449708924a0863dcc, type: 2}
- {fileID: 11400000, guid: 2f212815f4d3c1a4681afeeaf9c6dc37, type: 2}
- {fileID: 11400000, guid: 5061d2801862f4be9b0a635f8c7c8535, type: 2}
- {fileID: 11400000, guid: 991f6df195c83734f927996b42c074cb, type: 2}
- {fileID: 11400000, guid: cf7f00597aeb53a42b67c83d863a9ffa, type: 2}
- {fileID: 11400000, guid: 2bb4873d12aa1c64e804d4ac1cd5ea9f, type: 2}
- {fileID: 11400000, guid: 38318c20b5172439fa13885f1fdd14f0, type: 2}
- {fileID: 11400000, guid: 922fa490bfe22b54b887e9fd98ebdcc5, type: 2}
- {fileID: 11400000, guid: 9c8daf06e47430c47a2e2d1a4d27b04f, type: 2}
- {fileID: 11400000, guid: 939e4b3f7e611954da1a1d3925c27d9b, type: 2}
- {fileID: 11400000, guid: cd3afa141c6aeec4ebd43bb3042d14a2, type: 2}
Environments:
- {fileID: 11400000, guid: e7ee458a16eae2b48ac405f4ccc693e6, type: 2}
- {fileID: 11400000, guid: 5effa9d950f0f5943b60c7dd24471505, type: 2}
- {fileID: 11400000, guid: e493bfb624088664d89bd40212d93d4b, type: 2}
- {fileID: 11400000, guid: 68580816dd857264f9e48f299f24246a, type: 2}
- {fileID: 11400000, guid: a470d3298973f6848ad5c2715bad928b, type: 2}
- {fileID: 11400000, guid: 1ff166f5345466342ab1e14a0cf52810, type: 2}
- {fileID: 11400000, guid: 24d7b035c52552044a992efb353487f4, type: 2}
- {fileID: 11400000, guid: 95fb135d1a8f10a439edaadbeeebfebf, type: 2}
- {fileID: 11400000, guid: 498198474faa42846b3e333748264914, type: 2}
- {fileID: 11400000, guid: 0cac14d8dc99d284399801234e09c026, type: 2}
- {fileID: 11400000, guid: c1b260b015c6b0a479c50dee029cc5bc, type: 2}
- {fileID: 11400000, guid: a2472d544dd1bfd4c8f3288f9f7ee108, type: 2}
- {fileID: 11400000, guid: b42b208b245c1d34fabaf181763cd256, type: 2}
Locales:
- {fileID: 11400000, guid: 35f3779472064f74bafddfc140d73eb6, type: 2}
- {fileID: 11400000, guid: 24f69ae89af7fd24fb05a3798905dc72, type: 2}
- {fileID: 11400000, guid: f449db273dfc44449aa79eaa7135399b, type: 2}
- {fileID: 11400000, guid: ccffad35f32cd974cb4ed3f4b5cbccd8, type: 2}
- {fileID: 11400000, guid: f49fe9bebe68e674098c99a8c94562c4, type: 2}
- {fileID: 11400000, guid: 887d91eb154761a4cb852d5288e9a633, type: 2}
- {fileID: 11400000, guid: 5c5ec5e20869e384ba8781c68c5e3c51, type: 2}
CompatibilityBrushes:
- {fileID: 11400000, guid: 9d74e4f2898082d48885a67bc6f6e97d, type: 2}
- {fileID: 11400000, guid: 552a6b22c41f6514fbf6de142245a2ae, type: 2}
- {fileID: 11400000, guid: 1f21613e11c369544b6b6515aa112234, type: 2}
- {fileID: 11400000, guid: 0ed9d7bd0d4b1424eaa647281a7bb738, type: 2}
- {fileID: 11400000, guid: 510688aabb25f344daa830c8b8f5af16, type: 2}
- {fileID: 11400000, guid: e617036dc63ede649a1c716ac255dd88, type: 2}
- {fileID: 11400000, guid: d6c87eafa4cdba042933c1b4f6da46f7, type: 2}
- {fileID: 11400000, guid: ba0e0f27d49da824aa74ab60edd90a56, type: 2}
- {fileID: 11400000, guid: 0e87b49c65463a343a448a556d7d6c3e, type: 2}
- {fileID: 11400000, guid: 987198ed6dc42fb48861ac40965edb58, type: 2}
- {fileID: 11400000, guid: 84463df8784ac6646ab814a16602c250, type: 2}
- {fileID: 11400000, guid: c0393f9ef118b8b4eac658e169ac8497, type: 2}
- {fileID: 11400000, guid: 1928962e383e7f04696634b06de5ff25, type: 2}
- {fileID: 11400000, guid: 2c424631fdf55254282d1aa5405ad63a, type: 2}
8 changes: 8 additions & 0 deletions Assets/Manifest_Zapbox.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2160,11 +2160,11 @@ PrefabInstance:
type: 3}
propertyPath: m_Property.m_Target
value:
objectReference: {fileID: 76723185672001994}
objectReference: {fileID: 4781164090320310020}
- target: {fileID: 7599348944369875173, guid: c2a88d23f4dea5a4aae06f33862c9716,
type: 3}
propertyPath: m_Property.m_PropertyName
value: hasChanged
value: SelectedVideoIsPlaying
objectReference: {fileID: 0}
- target: {fileID: 7599348944369875173, guid: c2a88d23f4dea5a4aae06f33862c9716,
type: 3}
Expand Down
Loading

0 comments on commit 63e4db3

Please sign in to comment.