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 SourceAsTransform
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 SourceCheck()
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 SourceImplicit(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 |
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 |