# Camera Render To Cubemap

[Rendering](../index.md) / [Camera](index.md) / **Camera Render To Cubemap** Cubemap, FaceMask, StereoEye

## Description

Compares the Render To Cubemap method of Camera component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Camera |  |
| Cubemap |  |
| Face Mask |  |
| Stereo Eye |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Rendering;

namespace VisualScript.Runtime
{
    [Title("Camera Render To Cubemap")]
    [Category("Rendering/Camera/Render To Cubemap", "Cubemap, FaceMask, StereoEye")]
    [Description("Compares the Render To Cubemap method of Camera component to another value")]
    
    [Image(typeof(IconCamera), ColorTheme.Type.Blue)]
    
    [Parameter("Camera")]
    [Parameter("Cubemap")]
    [Parameter("Face Mask")]
    [Parameter("Stereo Eye")]
    
    [Serializable]
    public class GenConditionBool_Camera_CheckRenderToCubemap_3_RenderTextureCubemap_IntFaceMask_MonoOrStereoscopicEyeStereoEye : Condition
    {
        [SerializeField] private GetGameObject m_Camera = new GetGameObject(
            new GenTypeGameObject_Camera()
        );
        
        [SerializeField] private GetTexture m_Cubemap = new GetTexture();
        
        [SerializeField] private GetInteger m_FaceMask = new GetInteger();
        
        [SerializeField] private Camera.MonoOrStereoscopicEye m_StereoEye = default;
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Render To Cubemap");
            string parameters = $"({this.m_Cubemap}, {this.m_FaceMask}, {this.m_StereoEye})";
            return $"{this.m_Camera} {method}";
        }
        
        protected override bool Run(Args args)
        {
            Camera component = this.m_Camera.Get<Camera>(args);
            if (component == null) return false;
            
            bool value = component.RenderToCubemap(
                (RenderTexture) this.m_Cubemap.Get(args),
                (int) this.m_FaceMask.Get(args),
                this.m_StereoEye
            );
            
            return value;
        }
    }
}


```

