We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f356c26 + b6227cb commit 3490d1dCopy full SHA for 3490d1d
Assets/HoloToolkit/Utilities/Scripts/Billboard.cs
@@ -53,18 +53,28 @@ private void OnEnable()
53
{
54
if (TargetTransform == null)
55
56
- TargetTransform = CameraCache.Main.transform;
+ if (CameraCache.Main != null)
57
+ {
58
+ TargetTransform = CameraCache.Main.transform;
59
+ }
60
}
61
62
63
/// <summary>
64
/// Keeps the object facing the camera.
65
/// </summary>
- private void Update()
66
+ private void LateUpdate()
67
68
69
- return;
70
71
72
73
74
+ else
75
76
+ return;
77
78
79
80
// Get a Vector that points from the target to the main camera.
0 commit comments