Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStrength

Gets the strength at the passed in position.
Read time 1 minuteLast updated 11 days ago

Definition

GetStrength(int, int)

Gets the strength at the passed in position.
public float GetStrength(int ix, int iy)

Parameters

ix

The x position of the brush offset.

iy

The y position of the brush offset.

Returns

Type

Description

floatReturns the strength at the passed in position.

GetStrength(Vector2Int)

Gets the strength at the passed in position.
public float GetStrength(Vector2Int position)

Parameters

position

The position of the brush offset.

Returns

Type

Description

floatReturns the strength at the passed in position.

Remarks

Note: This method is an overloaded method using a
Vector2Int
instead of two separate ints for position.