139 lines
1.9 KiB
GDScript3
139 lines
1.9 KiB
GDScript3
|
func test():
|
||
|
var value
|
||
|
|
||
|
# null
|
||
|
value = null
|
||
|
print(value != null)
|
||
|
|
||
|
# bool
|
||
|
value = false
|
||
|
print(value != null)
|
||
|
|
||
|
# int
|
||
|
value = 0
|
||
|
print(value != null)
|
||
|
|
||
|
# float
|
||
|
value = 0.0
|
||
|
print(value != null)
|
||
|
|
||
|
# String
|
||
|
value = ""
|
||
|
print(value != null)
|
||
|
|
||
|
# Vector2
|
||
|
value = Vector2()
|
||
|
print(value != null)
|
||
|
|
||
|
# Vector2i
|
||
|
value = Vector2i()
|
||
|
print(value != null)
|
||
|
|
||
|
# Rect2
|
||
|
value = Rect2()
|
||
|
print(value != null)
|
||
|
|
||
|
# Rect2i
|
||
|
value = Rect2i()
|
||
|
print(value != null)
|
||
|
|
||
|
# Vector3
|
||
|
value = Vector3()
|
||
|
print(value != null)
|
||
|
|
||
|
# Vector3i
|
||
|
value = Vector3i()
|
||
|
print(value != null)
|
||
|
|
||
|
# Transform2D
|
||
|
value = Transform2D()
|
||
|
print(value != null)
|
||
|
|
||
|
# Plane
|
||
|
value = Plane()
|
||
|
print(value != null)
|
||
|
|
||
|
# Quaternion
|
||
|
value = Quaternion()
|
||
|
print(value != null)
|
||
|
|
||
|
# AABB
|
||
|
value = AABB()
|
||
|
print(value != null)
|
||
|
|
||
|
# Basis
|
||
|
value = Basis()
|
||
|
print(value != null)
|
||
|
|
||
|
# Transform3D
|
||
|
value = Transform3D()
|
||
|
print(value != null)
|
||
|
|
||
|
# Color
|
||
|
value = Color()
|
||
|
print(value != null)
|
||
|
|
||
|
# StringName
|
||
|
value = &""
|
||
|
print(value != null)
|
||
|
|
||
|
# NodePath
|
||
|
value = ^""
|
||
|
print(value != null)
|
||
|
|
||
|
# RID
|
||
|
value = RID()
|
||
|
print(value != null)
|
||
|
|
||
|
# Callable
|
||
|
value = Callable()
|
||
|
print(value != null)
|
||
|
|
||
|
# Signal
|
||
|
value = Signal()
|
||
|
print(value != null)
|
||
|
|
||
|
# Dictionary
|
||
|
value = {}
|
||
|
print(value != null)
|
||
|
|
||
|
# Array
|
||
|
value = []
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedByteArray
|
||
|
value = PackedByteArray()
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedInt32Array
|
||
|
value = PackedInt32Array()
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedInt64Array
|
||
|
value = PackedInt64Array()
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedFloat32Array
|
||
|
value = PackedFloat32Array()
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedFloat64Array
|
||
|
value = PackedFloat64Array()
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedStringArray
|
||
|
value = PackedStringArray()
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedVector2Array
|
||
|
value = PackedVector2Array()
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedVector3Array
|
||
|
value = PackedVector3Array()
|
||
|
print(value != null)
|
||
|
|
||
|
# PackedColorArray
|
||
|
value = PackedColorArray()
|
||
|
print(value != null)
|