Script v1_7_1_0
- AI
- Animals
- Collections
- Contracts
- Debug
- Economy
- Elements
- EnvironmentalScore
- Errors
- Events
- GUI
- Handtools
- Hud
- I3d
- Input
- Jobs
- Maps
- Materials
- Misc
- Objects
- Parameters
- Placeables
- Placement
- Player
- Shop
- Sounds
- Specialization
- Specializations
- StateMachine
- Statistics
- Tasks
- Triggers
- Utils
- Vehicles
Engine v1_7_1_0
- AI
- Animation
- Camera
- Entity
- Fillplanes
- general
- General
- I3D
- Input
- Lighting
- Math
- Network
- Node
- NoteNode
- Overlays
- clearOverlayArea
- renderOverlay
- set2DMaskFromOverlay
- set2DMaskFromTexture
- setOverlayColor
- setOverlayCornerColor
- setOverlayLayer
- setOverlayRotation
- setOverlaySignedDistanceFieldWidth
- setOverlayUVs
- Particle System
- Physics
- Rendering
- Scenegraph
- Shape
- Sound
- Spline
- String
- Terrain Detail
- Text Rendering
- Tire Track
- VoiceChat
- XML
Foundation Reference
set2DMaskFromTexture
DescriptionSet mask for 2d rendering (font and overlays)Definition
set2DMaskFromTexture(integer textureId, boolean maskAlphaOnly, float x, float y, float width, float height)Arguments
integer | textureId | |
boolean | maskAlphaOnly | if true, applies the mask to the alpha channel only, otherwise to all 4 channels |
float | x | x position |
float | y | y position |
float | width | |
float | height |