This file contains 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
using UnityEngine; | |
using UnityEngine.Animations; | |
using UnityEngine.Playables; | |
public class MultiplePlayable : MonoBehaviour | |
{ | |
[SerializeField] private AnimationClip _clip1; | |
[SerializeField] private AnimationClip _clip2; | |
[SerializeField] private Animator _animator; | |
[SerializeField] private Animator _animator2; |
This file contains 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
using UnityEngine; | |
using UnityEngine.Animations; | |
using UnityEngine.Playables; | |
public class SimplePlayable : MonoBehaviour | |
{ | |
[SerializeField] private AnimationClip _clip; | |
[SerializeField] private Animator _animator; | |
private PlayableGraph _graph; |
This file contains 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
using UnityEngine.Rendering.Universal; | |
public class DownSamplingRenderFeature : ScriptableRendererFeature | |
{ | |
DownSamplingRenderPass _renderPass; | |
public override void Create() | |
{ | |
// パスの作成 | |
_renderPass = new DownSamplingRenderPass |
This file contains 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
using System.Collections.Generic; | |
using SRDebugger; | |
using SRDebugger.Internal; | |
using SRDebugger.UI.Controls; | |
using SRDebugger.UI.Tabs; | |
using UnityEngine; | |
public abstract class CustomTabControllerBase : OptionsTabController | |
{ | |
public abstract IOptions Option { get; } |
This file contains 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
package com.unity3d.player; | |
import android.app.Activity; | |
import android.app.PictureInPictureParams; | |
import android.content.Intent; | |
import android.content.res.Configuration; | |
import android.graphics.PixelFormat; | |
import android.os.Bundle; | |
import android.util.Rational; | |
import android.view.KeyEvent; |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" xmlns:tools="http://schemas.android.com/tools"> | |
<uses-feature android:glEsVersion="0x00030000" /> | |
<uses-feature android:name="android.hardware.vulkan.version" android:required="false" /> | |
<uses-feature android:name="android.hardware.touchscreen" android:required="false" /> | |
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" /> | |
<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" /> | |
<application android:extractNativeLibs="true"> | |
<meta-data android:name="unity.splash-mode" android:value="0" /> | |
<meta-data android:name="unity.splash-enable" android:value="True" /> |
This file contains 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
using UnityEngine; | |
[RequireComponent (typeof(MeshRenderer))] | |
[RequireComponent (typeof(MeshFilter))] | |
public class DynamicCreateMesh : MonoBehaviour | |
{ | |
[SerializeField] Material _colorMaterial; | |
private void Start () | |
{ |
This file contains 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
using UnityEngine; | |
[RequireComponent (typeof(MeshRenderer))] | |
[RequireComponent (typeof(MeshFilter))] | |
public class DynamicCreateMesh : MonoBehaviour | |
{ | |
[SerializeField] Material _colorMaterial; | |
private void Start () | |
{ |
This file contains 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
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// Sprite PivotをCustomに設定するサンプルコード | |
/// </summary> | |
public class CustomPivot : AssetPostprocessor | |
{ | |
private void OnPostprocessTexture(Texture2D target) | |
{ |
This file contains 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
<TextArea onChange={(event) => { | |
const changedText = event.target.value | |
// save localStorage | |
localStorage.setItem("savekey", changedText) | |
}} | |
value = changedText | |
/> |