- Method 1 - GetComponent
- Method 2 - gameObject.transform
- Method 3 - storing gameObject.transform in a variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Color Daffodil { get { return new Color(255, 230, 23); } } | |
public Color Daisy { get { return new Color(250, 211, 28); } } | |
public Color Mustard { get { return new Color(253, 183, 23); } } | |
public Color CitrusZest { get { return new Color(250, 170, 23); } } | |
public Color Pumpkin { get { return new Color(241, 117, 63); } } | |
public Color Tangerine { get { return new Color(237, 87, 36); } } | |
public Color Salmon { get { return new Color(240, 70, 57); } } | |
public Color Persimmon { get { return new Color(234, 40, 48); } } | |
public Color Rouge { get { return new Color(188, 35, 38); } } | |
public Color Scarlet { get { return new Color(140, 12, 3); } } |
To view the progress of a Powerpoint presentation, a progress bar can be displayed at the bottom of the slide show.
Once the slideshow is complete, go to Tools > Macro > Visual Basic Editor.
In the new window, select Insert > Module and copy this text in the blank page:
Sub AddProgressBar()
On Error Resume Next
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A = imread('peppers.png'); | |
G = fspecial('gaussian', [5,5], 2); | |
GFilter = fspecial('gaussian', [5,5], 2); | |
G = imfilter(I, GFilter); | |
figure; | |
subplot(141); imshow(A); title('Original Image'); | |
subplot(142); imshow(G); title('Gaussian Filter'); | |
subplot(143); imshow(A-G); title('Difference'); | |
subplot(144); imshow((A-G).^2); title('Difference^{2}'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CalendarPrinter | |
@@daysOfWeek = ['Su','Mo', 'Tu','We','Th','Fr', 'Sa' ] | |
def initialize(monthName, year, startDayOfMonth, daysOfMonth) | |
@month = monthName | |
@year = year | |
@firstDayOfMonth = startDayOfMonth | |
@totalDaysOfMonth = daysOfMonth | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
write-host("Ad-Hoc Creator") | |
write-host("Please enter an SSID") -foreground "green" | |
$network_name = Read-Host | |
write-host("Please enter a Password") -foreground "green" | |
$network_pass = Read-Host | |
write-host "Stopping current hosted network ..." -foreground "yellow" | |
netsh wlan stop hostednetwork | |
write-host "Creating new network ..."-foreground "green" | |
netsh wlan set hostednetwork mode=allow ssid=$network_name key=$network_pass | |
write-host("Starting network ...") -foreground "green" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing dub using brew | |
$ brew install dub | |
Create project using dub | |
$ dub init hello_opengl | |
After compiling glfw, put a local copy of libglfw.dylib (glfw/build/src/libglfw.dylib) in hello_opengl directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compile Command | |
# Mac Os X | |
g++ source.cpp -L/usr/local/lib -lSDL2 | |
^ | |
Link to Library Directory | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket/base | |
;; Experimentation with OpenGL for widgetry. | |
(require racket/class) | |
(require racket/gui/base) | |
(require sgl) | |
(require sgl/gl-vectors) | |
(define c% | |
(class canvas% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.BrainDump.PluginTester" | |
android:versionCode="2" | |
android:versionName="1.0"> | |
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
<uses-permission android:name="android.permission.STORAGE" /> | |
<uses-permission android:name="android.permission.INTERNET" /> |
NewerOlder