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]
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' ); | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
using System.Collections; | |
using System.Collections.Generic; | |
using SDD.Extensions; | |
using SDD.Events; | |
namespace SDD.UI { |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
using System.Collections; | |
using System.Collections.Generic; | |
using SDD.Extensions; | |
using SDD.Events; | |
namespace SDD.UI { |