# Camera Copy From

[Rendering](../index.md) / [Camera](index.md) / **Camera Copy From**

## Description

Executes the Copy From method on the Camera component

## Parameters

| Name | Description |
| :--- | :---------- |
| Other |  |

## 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 Copy From")]
    [Category("Rendering/Camera/Copy From")]
    [Description("Executes the Copy From method on the Camera component")]
    
    [Image(typeof(IconCamera), ColorTheme.Type.Blue)]
    
    [Parameter("Other")]
    
    [Serializable]
    public class GenInstructionCamera_CopyFrom_1 : Instruction
    {
        [SerializeField] private GetGameObject m_Camera = new GetGameObject(
            new GenTypeGameObject_Camera()
        );
        
        [SerializeField] private GetGameObject m_Other = new GetGameObject();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Copy From");
            return $"{this.m_Camera} {method} ({this.m_Other})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Camera component = this.m_Camera.Get<Camera>(args);
            if (component == null) return Done;
            
            component.CopyFrom(
                (Camera) this.m_Other.Get<Camera>(args)
            );
            
            return Done;
        }
    }
}


```

