Skip to content

Instantly share code, notes, and snippets.

View oismaelash's full-sized avatar
💭
I change the world when you see the path for get the goals! let’s go together

Ismael Ash oismaelash

💭
I change the world when you see the path for get the goals! let’s go together
View GitHub Profile
using UnityEngine;
using Vuforia;
using UnityEngine.SceneManagement;
// Coloque esse script no GameObject ImageTarget
public class ActionDetectImageTarget: MonoBehaviour, ITrackableEventHandler
{
private void Start()
{
GetComponent<TrackableBehaviour>().RegisterTrackableEventHandler(this);
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
int main()
{
int n;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;
using UnityEngine.Video;
public class VirtualButtonManager : MonoBehaviour, IVirtualButtonEventHandler
{
[SerializeField] private UnityEngine.UI.Image imagePanel;
[SerializeField] private VideoPlayer videoPlayer;
private string GetStreamingAssetsPath()
{
string filePath;
#if UNITY_EDITOR
filePath = Application.dataPath + "/StreamingAssets";
#elif UNITY_IOS
filePath = Application.dataPath + "/Raw";
using System;
using System.IO;
namespace GetDriversLogics
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Begin Drivers logical:");
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UI;
public class StoreCard : MonoBehaviour
{
[SerializeField] private Image imgStore;
private void OnEnable()
let AWS = require('aws-sdk');
const sns = new AWS.SNS();
exports.handler = function (event, context, callback) {
let receiver = event['receiver'];
let sender = event['sender']; // Type alpha numeric with limit max 11 chars
let message = event['message'];
console.log("Sending message", message, "to receiver", receiver);
using UnityEngine;
public class CopyToClipboardUnity : MonoBehaviour
{
[SerializeField] private string myText;
public void OnButtonCopyClipboardClicked()
{
TextEditor textForCopy = new TextEditor
{
text = myText
{
"code": "200",
"status": "success",
"data": {
"message": "if error, message here, if success, message is empty"
}
};
private IEnumerator Screenshot_Coroutine()
{
yield return new WaitForEndOfFrame();
Texture2D screenshot = ScreenCapture.CaptureScreenshotAsTexture();
string screenshotBase64 = Convert.ToBase64String(screenshot.EncodeToPNG());
var bytes = Convert.FromBase64String(screenshotBase64);
using (var imageScreenshot = new FileStream(PathFileScreenshot, FileMode.Create))
{
imageScreenshot.Write(bytes, 0, bytes.Length);