Skip to content

Commit

Permalink
Use 1 render texture only
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanStinson committed Sep 16, 2022
1 parent 00a8196 commit acfa7be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public void Initialize(Camera cameraPrefab)
{
var previewsParent = new GameObject("3DPreviews").transform;
var previewPrefabs = _assetsLibrary.Get3DPreviews();
var renderTexture = new RenderTexture(512, 512, 0);

for (int i = 0; i < previewPrefabs.Length; ++i)
{
var spawnedPreview = GameObject.Instantiate(previewPrefabs[i]);
spawnedPreview.transform.SetParent(previewsParent, false);
spawnedPreview.transform.localPosition += Vector3.right * i * _spacingBetweenObjects;

var renderTexture = new RenderTexture(512, 512, 0);
var spawnedCamera = GameObject.Instantiate(cameraPrefab);
spawnedCamera.transform.SetParent(spawnedPreview.transform, false);
var cameraPositioner = new PackItem3DCameraPositioner();
Expand Down

0 comments on commit acfa7be

Please sign in to comment.