Hi Stephen,
You have discovered an oversight with our 3D Photo Feature template/example.
While we provide a Z.Device object in the Hierarchy (called device), it’s not actually used in the buttonCode script where the picture taking is handled.
Please follow these steps to rectify the issue:
- Select the buttonCode script in the Hierarchy.
- Drag the device node into the script and insert it as a variable (it should create a variable called
device
).
- Find the line of code
Z.device.snapshot();
and replace Z.device with the variable name of the device node variable, in this case, device
. The code should then read device.snapshot();
- Use the device node in the Hierarchy to change the
snapshotMessage
to whatever you would like.
Please bear in mind that some social media apps, namely Facebook, ignore this default message when sharing to them.
Thanks,
Mark