Skip to content

Instantly share code, notes, and snippets.

View RedDude's full-sized avatar

Rinaldo Alipio Bueno RedDude

View GitHub Profile
@RedDude
RedDude / CanvasPositioningExtensions.cs
Created August 30, 2021 18:31 — forked from FlaShG/CanvasPositioningExtensions.cs
A small Unity helper class to convert viewport, screen or world positions to canvas space.
using UnityEngine;
/// <summary>
/// Small helper class to convert viewport, screen or world positions to canvas space.
/// Only works with screen space canvases.
/// </summary>
/// <example>
/// <code>
/// objectOnCanvasRectTransform.anchoredPosition = specificCanvas.WorldToCanvasPoint(worldspaceTransform.position);
/// </code>
@RedDude
RedDude / ExpandableAttribute.cs
Created July 8, 2018 04:50
ExpandableAttribute Unity
using UnityEngine;
/// <summary>
/// Use this property on a ScriptableObject type to allow the editors drawing the field to draw an expandable
/// area that allows for changing the values on the object without having to change editor.
/// </summary>
public class ExpandableAttribute : PropertyAttribute
{
public ExpandableAttribute()
{
@RedDude
RedDude / ExpandableAttributeDrawer.cs
Created July 8, 2018 04:50
ExpandableAttributeDrawer Unity
using UnityEngine;
#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using UnityEditor;
#endif
#if UNITY_EDITOR
/// <summary>
@RedDude
RedDude / extUpdate
Last active February 28, 2019 18:09
ext update manifest
{
"version" : "2.0",
"message" : "A new version of VelocistTools are Avaliable",
"howToGet" : "git pull on your quality tools folder (dev branch)",
"link" : "git clone https://your_signum_ericsson@gerrit.ericsson.se/a/oss-solutions/quality_tools",
"features" : "Show Missing +2 Reviewer - OfferManaeger"
}