Исправление. Для всех параметров, должна быть возможность получить значение
This commit is contained in:
@@ -23,9 +23,11 @@ func set_strob_color(val: Color): $строб.set_instance_shader_parameter('
|
|||||||
|
|
||||||
func get_strob_center() -> Vector2: return $строб.position
|
func get_strob_center() -> Vector2: return $строб.position
|
||||||
func get_strob_visible() -> bool: return $строб.visible
|
func get_strob_visible() -> bool: return $строб.visible
|
||||||
|
func get_strob_dir() -> float: return $строб.get_instance_shader_parameter('dir')
|
||||||
func get_strob_width() -> float: return $строб.get_instance_shader_parameter('width')
|
func get_strob_width() -> float: return $строб.get_instance_shader_parameter('width')
|
||||||
func get_strob_band() -> float: return $строб.get_instance_shader_parameter('band') * 125.0
|
func get_strob_band() -> float: return $строб.get_instance_shader_parameter('band') * 125.0
|
||||||
func get_strob_radius() -> float: return $строб.get_instance_shader_parameter('radius') * 125.0
|
func get_strob_radius() -> float: return $строб.get_instance_shader_parameter('radius') * 125.0
|
||||||
|
func get_strob_color() -> float: return $строб.get_instance_shader_parameter('color')
|
||||||
|
|
||||||
func get_radius_outter() -> float: return material.get('shader_parameter/radius_outter')
|
func get_radius_outter() -> float: return material.get('shader_parameter/radius_outter')
|
||||||
func get_radius_inner_0() -> float: return material.get('shader_parameter/radius_inner_0')
|
func get_radius_inner_0() -> float: return material.get('shader_parameter/radius_inner_0')
|
||||||
|
|||||||
Reference in New Issue
Block a user