Skip to content

Commit

Permalink
fix: remove readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jan 2, 2021
1 parent dc556c8 commit 7fdf71a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Assets/MediaPipe/Examples/Scenes/DesktopCPU.unity
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 842caaa3595af5affbad9424323d3133, type: 3}
m_Name:
m_EditorClassIdentifier:
Width: 640
Height: 480
FPS: 30
FocalLengthPx: 2
--- !u!64 &496037460
MeshCollider:
m_ObjectHideFlags: 0
Expand Down
4 changes: 4 additions & 0 deletions Assets/MediaPipe/Examples/Scenes/DesktopGPU.unity
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,10 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 842caaa3595af5affbad9424323d3133, type: 3}
m_Name:
m_EditorClassIdentifier:
Width: 640
Height: 480
FPS: 30
FocalLengthPx: 2
--- !u!64 &496037460
MeshCollider:
m_ObjectHideFlags: 0
Expand Down
8 changes: 4 additions & 4 deletions Assets/MediaPipe/Examples/Scripts/WebCamScreenController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
using UnityEngine;

public class WebCamScreenController : MonoBehaviour {
[SerializeField] readonly int Width = 640;
[SerializeField] readonly int Height = 480;
[SerializeField] readonly int FPS = 30;
[SerializeField] readonly float FocalLengthPx = 2.0f; /// TODO: calculate it from webCamDevice info if possible.
[SerializeField] int Width = 640;
[SerializeField] int Height = 480;
[SerializeField] int FPS = 30;
[SerializeField] float FocalLengthPx = 2.0f; /// TODO: calculate it from webCamDevice info if possible.
private const int TEXTURE_SIZE_THRESHOLD = 50;

private WebCamDevice webCamDevice;
Expand Down

0 comments on commit 7fdf71a

Please sign in to comment.