playMaker

Author Topic: Is there any way to get the color of a specific "range" of textures?  (Read 500 times)

playmakertester

  • Full Member
  • ***
  • Posts: 211
Hi,

I would like to cut out some area from a particular Texture2D (think of this 2D as an image that changes in real time) and paste it into another Texture2D.

I looked into some scripts and found the following script.

Texture2D.GetPixels
https://docs.unity3d.com/ScriptReference/Texture2D.GetPixels.html

I searched the Ecosystem for an Action similar to this script and found "Get Pixel Color", but this action did not seem to have "blockWidth" and "blockHeight" as arguments.

In this case, the only arguments that can be specified are "X" and "Y", and it seems that the Pixel of a specific area cannot be obtained.

Is it difficult for Playmaker to get the Pixel of a specific area in Texture2D and save it? If there is a better action, I would appreciate your advice.
« Last Edit: March 23, 2021, 10:03:57 AM by playmakertester »