A SceneReference
wrapper class that uses ISerializationCallbackReceiver and a custom PropertyDrawer
to provide safe, user-friendly scene references in scripts.
![alt text][1]
using System.Collections; | |
using System.IO; | |
using UnityEngine; | |
using UnityEngine.InputSystem; | |
public class SignatureCapture : MonoBehaviour | |
{ | |
[SerializeField] private GameObject brushPrefab; | |
[SerializeField] private float brushSize = 0.1f; | |
[SerializeField] private RenderTexture renderTexture; |
<?php | |
/* | |
* Copyright 2010 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
* use this file except in compliance with the License. You may obtain a copy of | |
* the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
// app/src/debug/java/com/akhil/sampleapp/CustomMultiDexApplication.java | |
package com.akhil.sampleapp; | |
import android.support.multidex.MultiDexApplication; | |
import com.squareup.leakcanary.AndroidExcludedRefs; | |
import com.squareup.leakcanary.LeakCanary; | |
import com.squareup.leakcanary.RefWatcher; | |
A SceneReference
wrapper class that uses ISerializationCallbackReceiver and a custom PropertyDrawer
to provide safe, user-friendly scene references in scripts.
![alt text][1]
/*! | |
* html2canvas 1.0.0-alpha.12-rc2 <https://html2canvas.hertzen.com> | |
* Copyright (c) 2018 Niklas von Hertzen <https://hertzen.com> | |
* Released under MIT License | |
* Editted By William Crandell | |
*/ | |
(function webpackUniversalModuleDefinition(root, factory) { | |
if(typeof exports === 'object' && typeof module === 'object') | |
module.exports = factory(); | |
else if(typeof define === 'function' && define.amd) |
public class CustomInAppKeyboard extends LinearLayoutCompat { | |
private static final String TAG = "MyKeyboard"; | |
@Override | |
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { | |
super.onMeasure(widthMeasureSpec, heightMeasureSpec); | |
if(BuildConfig.DEBUG){ | |
Log.e("CustomInAppKeyboard", "w:" + widthMeasureSpec + " :: " + MeasureSpec.toString(widthMeasureSpec)); |
import android.graphics.Canvas; | |
import android.graphics.ColorFilter; | |
import android.graphics.Matrix; | |
import android.graphics.Rect; | |
import android.graphics.RectF; | |
import android.graphics.drawable.Drawable; | |
import android.support.annotation.IntRange; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; |
add_action('pmpro_checkout_before_submit_button', 'my_pmp_jquery'); | |
function my_pmp_jquery() { | |
global $current_user; | |
get_currentuserinfo(); | |
if ($current_user->user_login) { | |
//script will hide billing fields and prefill name and email from WP account | |
?> | |
<script> | |
jQuery( document ).ready(function($) { |
// www.website.com/page?id=100 | |
$('#pageLink').attr('href', $('#pageLink').attr('href').replace(/((\?|&)id\=)[0-9]*/, '$1' + '123')); | |
// www.website.com/page?id=123 |
/* | |
Add a "How did you hear about us?" field Membership Checkout for new members only. | |
Display the field for admins-only in the profile and in the Members List CSV export. | |
*/ | |
function my_pmpro_how_hear_fields() { | |
global $current_user; | |
if(class_exists( 'PMProRH_Field' ) && (!pmpro_hasMembershipLevel() || current_user_can( 'edit_users' ) ) ) { | |
pmprorh_add_checkout_box( 'additional', 'Additional Information' ); | |