Unity's SerializedProperty not support custom type value setting. This extension use Reflection to get target instance of SerializedProperty in Custom Editor, made value setting of general type is posible.
public class FSpriteHolesShader : FShader | |
{ | |
private Texture _hole0Texture=null; | |
private Vector4 _hole0LocalToUVParams; | |
private Vector4 _hole0MatrixABCD; | |
private Vector4 _hole0MatrixTxTy; | |
private Vector4 _hole0UVRect; | |
private FSprite _hole0Sprite=null; | |
static private Vector4 _screenParams; |
/* | |
* Copyright (c) 2014 William Corwin | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
//This quick guide will show you how add an optional web-app (iOS) view to your Twine game! | |
//First you'll need to open up your Twine (.tws) file. | |
1. Add a new passage to your story and name it "script" | |
2. Enter the tags section and add the word "script" | |
3. Now, in the main body, add the code: | |
document.addEventListener('touchmove', function(e) { | |
e.preventDefault(); | |
}, false); |
using UnityEngine; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Extending MonoBehaviour to add some extra functionality | |
/// Exception handling from: http://twistedoakstudios.com/blog/Post83_coroutines-more-than-you-want-to-know | |
/// | |
/// 2013 Tim Tregubov |
//originally adopted from | |
//http://answers.unity3d.com/questions/447701/event-for-unity-editor-pause-and-playstop-events.html | |
//with a few modifications which makes the event firing nicer and cleaner | |
//Usage Example : | |
// | |
//using UnityEditor; | |
//using UnityEngine; | |
// | |
//[InitializeOnLoad] | |
//public class SingleEntryPoint |
using System; | |
using UnityEngine; | |
namespace UnityRest | |
{ | |
public static class JsonHelper | |
{ | |
public static T[] FromJson<T>(string jsonArray) | |
{ | |
jsonArray = WrapArray (jsonArray); |
Warning: Due to Homebrew/php
tap being deprecated at the end of March 2018, and the moving of all PHP formulas to Homebrew/core
, the installation of PHP versions we currently use is going to change. Currently PHP 7.2
is available in the core, but we are waiting on previous versions to be made available and will update this guide as soon as we can. Thanks!
Note: This is an updated version of our prior OS X development series. The newly released macOS 10.13 High Sierra and the accompanying updates to Brew require significant changes compared to prior releases, necessitating a thorough revamp in the process. Since 10.12 we now use Homebrew's Apache, rather than the built-in version, but this new appraoch is more flexible and should continue to work on prior OS X versions.
Developing web applications on macOS is a real joy. There are plenty of options for setting up your develop
{ | |
"name": "proxypersisttest", | |
"description": "A little test app that uses JavaScript proxy to manage a persistent stats object.", | |
"author": "Dave Winer <[email protected]>", | |
"license": "MIT", | |
"version": "0.4.0", | |
"dependencies" : { | |
"daveutils": "*" | |
} | |
} |
using System; | |
using System.Reflection; | |
using UnityEngine; | |
public static class AnimatorExtensions | |
{ | |
/// <summary>Gets an instance method with single argument of type <typeparamref | |
/// name="TArg0"/> and return type of <typeparamref name="TReturn"/> from <typeparamref | |
/// name="TThis"/> and compiles it into a fast open delegate.</summary> | |
/// <typeparam name="TThis">Type of the class owning the instance method.</typeparam> |