Blender - Test the area if it's currently in full screen (maximized) - boolean

i just want to ask how to test if the area (specifically the 3d view) is maximized or in fullscreen
And is there a boolean syntax for it instead of a toggle, thank tou in advance and cheers!
PS: i didnt include any codes to this simple question

You can test for fullscreen with the boolean bpy.context.screen.show_fullscreen. This is a read-only property, you can't set it.

Related

Is there a way to do this change the color of the dual-shock controller's light bar outside of unity through code?

I am developing a unity game and I want to make the light bar on a connected Dualshock controller change color when a player has taken damage. Could someone please inform me of a way to do this, as unity no longer supports this.
I tried to achieve this by using the following namespace and then change the color of the light bar using a method, but soon realized that unity has deprecated this feature a long time ago.
using UnityEngine.InputSystem.DualShock;
Thanks in advance!
EDIT: Unity does in fact support this, just on their NEW input system package (which my team don't have the time to upgrade to). So I guess my new question is: Is there a way to do this change the color of the dual-shock controller's light bar outside of unity programmatically and through code?
Thanks!
Try this !
var gamepad = (DualShockGamepad)Gamepad.all[0];
gamepad.SetLightbarColor(Color.red);
from here : https://forum.unity.com/threads/dualshock-4-lightbar.848707/
Edit: Also, you have to be using the "new" input system : https://docs.unity3d.com/Packages/com.unity.inputsystem#1.0/manual/Installation.html

How to add post processing on UI (Unity)

My question is very simple, i just want to add Post Processing on my Canvas object or UI in general. I know there is an option to select the UI layer but that still doesnt affect my UI. Thanks in advance
And this is what happens when i switch it to Screen Space Camera:
Go to your Canvas and change the Render Mode from Screen Space-Overlay to Screen Space-Camera. I think that should fix your problem.
Yes, chage your setting to Screen Space-Camera but use these settings (under render camera put your camera):

How to detect color live using camera on android in unity

i want to make a live color detection using camera on android in unity. apps that i want is like "color grab" on playstore.
anyone can help me how it works? or how to make it on unity?
Well SO isn't a script providing service: always try to provide what you have tried already before asking a question. If you don't have any script, at least expose you way you want to do it, the steps you think are needed, ...
Anyway, I'd advise you to take a look at Unity Texture2D.ReadPixels() method:
display what you need on screen
when the user touch a place, call for ReadPixels()
then retrieve the color of the desire location on the texture using Texture2D.GetPixel()
If you want to search for a larger area (not a single pixel), you can look for all the pixels around the wanted location and then get the average color found.
Hope this helps,

How to show a text instead of 3d object in unity5 and vuforia?

Hope there's a response. :( What I want to is: Object recognition. Using Unity and Vuforia. Is it possible to make a text or a toast that will pop out or show in the camera when the objects is detected, instead of a 3d object? For example. If I detected ace of heart card. It will a show a text "ACE OF HEART"
yes it is possible, use UI component and put it under Image target, I think its very enough and If it is not then let me know I will put the entire content here, but belive me it is very simple try it just once.
Yes Its Possible.
You Just Have to Add Unity UI (You Just Could Use a Image with the text, in that case add an Image or you just could use a Text, so just add a Text, it's your choice) To that Object and set the Canvas in WorldSpace Mode.
And just that should do the trick.

Work with iphone camera

I am looking for anyone that can help create some source and a tutorial with me to answer how to create a transparent straight line on iphone camera.
Please , If anyone knows of a tutorial already then pls reply me.
If I understand you correctly, you want to have a live preview of the camera overlays by I more or less transparent line, right ?
Two solution come to my mind:
Build one view that gets the camera input via AvFoundation framework and build another - transparent - view that holds whatever elements you want to display on top of that.
Another solution would be to build one OpenGL view, use the camera input as texture for a background rectangle filling the whole screen and then render your other content on top of that.
If you are looking tutorial for camera overlay you can visit this. It has source code attached too. So you will find easy with that. But pls don't just copy paste try to understand the code when you have time.