Skip to content

RemotePhotoFrame

476

RemotePhotoFrame is used to configure a frame and adjust how images are displayed.

This component must be placed on the mesh object that displays the photo.

A UV-normalized single plane is recommended for the photo display mesh.

The photo display mesh must use the Shader included with this project.

ParameterDescription
OrientationSets the frame’s composition direction. Choose Landscape or Portrait based on the actual frame.
Material SlotSelects the material slot that displays the image, counted from 0. Usually this does not need to change when there is only one material.
Texture PropertyName of the main texture slot in the material’s Shader. Because this project uses its own Shader, this usually stays as _MainTex.

287

ParameterDescription
Default TextureImage shown before the remote link loads. Leaving this empty does not affect the system.
Fallback TextureImage shown after a remote image fails to load. Leaving this empty does not affect the system.
Background ColorBackground color used for the empty edges left by Contain, and for side fill in Box mode.
ParameterDescription
Photo Fit ModeProvides common image fitting modes.
Projection ModeSelects how the photo texture is projected.
Horizontal FlipSometimes Box projection appears horizontally mirrored. Enable this option to fix it.
Photo Rotation OffsetAdds an extra rotation before the photo is finally displayed. Usually keep this at 0 unless you need to fix an issue or create a special effect.
OptionDescription
CropCrops the parts outside the frame without changing the remaining image ratio.
ContainScales the image so the whole image fits inside the frame, leaving empty edges.
StretchIgnores image ratio and stretches the image to fill the frame.
TileKeeps the original image size and repeats the pattern inside the frame.
OptionDescription
Mesh UVSuitable for a single-plane mesh. A single-plane photo display mesh is recommended for this mode.
BoxSuitable for a cube mesh. This mode detects the cube dimensions, discards the shortest side, and uses the remaining two dimensions to build the projection plane. In practice, shape the photo mesh into a flat frame-like cube.

Other geometry types have not been tested. Use only a single plane or a six-sided cube mesh.

ParameterDescription
Aspect ModeSwitches how the image display ratio is calculated.
Reference Box Axis ModeIn Reference Box mode, selects how the reference box is used to calculate the ratio.
Resolved Aspect RatioShows the final ratio being applied.
OptionDescription
ManualForces the ratio entered in Manual Aspect Ratio. Use this only when you know exactly what you need.
AutoCalculates the ratio from the mesh bounds. Usually recommended.
Reference BoxProvides a box edited like a BoxCollider. Wrap this box around your frame.
OptionDescription
AutoDiscards the shortest side, like cube projection, and calculates the ratio from the remaining two sides.
Manual AxesManually selects which two axes are used to calculate the ratio.