---
tags:
    - "Transform"
---

# Transform Transform Direction

[Transform](../index.md) / [Transformations](index.md) / **Transform Transform Direction** Direction

## Description

Transforms the direction from local space to world space

## Parameters

| Name | Description |
| :--- | :---------- |
| Transform |  |
| Direction |  |
| Value |  |

## 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;

namespace VisualScript.Runtime
{
    [Title("Transform Transform Direction")]
    [Category("Transform/Transformations/Transform Direction", "Direction")]
    [Description("Transforms the direction from local space to world space")]
    
    [Image(typeof(IconCubeOutline), ColorTheme.Type.Lime)]
    [Keywords("Transform")]
    
    [Parameter("Transform")]
    [Parameter("Direction")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionVector3_Transform_CheckTransformDirection_1_Vector3Direction : Condition
    {
        [SerializeField] private GetGameObject m_Transform = new GetGameObject(
            new GenTypeGameObject_Transform()
        );
        
        [SerializeField] private GetVector3 m_Value = new GetVector3();
        
        [SerializeField] private GetVector3 m_Direction = new GetVector3();
        
        protected override string GetTitle(GameObject source)
        {
            string method = TextUtils.ThemeAsKeyword("Transform Direction");
            string parameters = $"({this.m_Direction})";
            return $"{this.m_Transform} {method} = {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Transform component = this.m_Transform.Get<Transform>(args);
            if (component == null) return false;
            
            Vector3 value = component.TransformDirection(
                (Vector3) this.m_Direction.Get(args)
            );
            
            return value == (Vector3) this.m_Value.Get(args);
        }
    }
}


```

