Show / Hide Table of Contents

Class Target

Describes a transform in different ways.

Inheritance
System.Object
Target
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: BulletStorm.Util
Assembly: BulletStorm.dll
Syntax
[Serializable]
public class Target

Properties

| Improve this Doc View Source

AsTransform

Get the transform inside. Will always be null before calling Check().

Declaration
public Transform AsTransform { get; }
Property Value
Type Description
UnityEngine.Transform

Methods

| Improve this Doc View Source

Check()

Initiate and check if target is valid.

Declaration
public bool Check()
Returns
Type Description
System.Boolean
Exceptions
Type Condition
System.ArgumentOutOfRangeException

Operators

| Improve this Doc View Source

Implicit(Target to Boolean)

True if transform not null. Always return false before calling Check().

Declaration
public static implicit operator bool (Target target)
Parameters
Type Name Description
Target target
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Implicit(Target to Transform)

The transform value. Will always be null before calling Check().

Declaration
public static implicit operator Transform(Target target)
Parameters
Type Name Description
Target target
Returns
Type Description
UnityEngine.Transform
  • Improve this Doc
  • View Source
Back to top Generated by DocFX