Target#
Can Read
Cannot Write
Description#
The Target game object the calling object targets
Code#
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Get]
[Title("Target")]
[Category("Target")]
[Description("The Target game object the calling object targets")]
[Image(typeof(IconTarget), ColorTheme.Type.Yellow)]
[Keywords("Target")]
[Serializable]
public class TypeGameObjectTarget : TypeGameObject
{
public override GameObject Get(Args args)
{
return args.Target;
}
public static GetGameObject Create()
{
TypeGameObjectTarget instance = new TypeGameObjectTarget();
return new GetGameObject(instance);
}
public override string ToString()
{
return "Target";
}
}
}