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
namespace PROJECT { | |
/** | |
* Babylon Script Component | |
* @class MyRotate | |
*/ | |
export class MyRotate extends TOOLKIT.ScriptComponent { | |
// Example: private helloWorld:string = "Hello World"; | |
public speed:number = 1.0; | |
protected awake(): void { | |
this.transform.position.set(0,1,0); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Babylon.js sample code</title> | |
<script src="https://preview.babylonjs.com/babylon.js"></script> | |
<link rel="stylesheet" type="text/css" href="style.css" /> | |
</head> | |
<body> | |
<canvas id="renderCanvas"></canvas> |
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
//based on "https://qiita.com/lycoris102/items/35e338b32105879e0ab9" | |
using UnityEngine; | |
using UnityEngine.UI; | |
using TMPro; | |
public class LocationRenderer : MonoBehaviour | |
{ | |
public LocationUpdater updater; | |
public TMPro.TMP_Text text; |
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
//Copied from "https://qiita.com/lycoris102/items/35e338b32105879e0ab9" | |
using UnityEngine; | |
using System.Collections; | |
public class LocationUpdater : MonoBehaviour | |
{ | |
public float IntervalSeconds = 1.0f; | |
public LocationServiceStatus Status; | |
public LocationInfo Location; |
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
} attachments: { | |
Attachment(id: "ui_panel") { | |
HStack { | |
// A button to reload the current scene. | |
Button { godotVision.reloadScene() } label: { | |
Text("Reload") | |
} | |
// Buttons for loading example scenes. | |
sceneButton(label: "Hello", resourcePath: "res://examples/hello/example_godot_vision_scene.tscn") |
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
var engine = new BABYLON.NativeEngine(); | |
var scene = new BABYLON.Scene(engine); | |
CreateBoxAsync(scene).then(function () { | |
//CreateSpheresAsync(scene).then(function () { | |
//BABYLON.SceneLoader.AppendAsync("https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Box/glTF/Box.gltf").then(function () { | |
//BABYLON.SceneLoader.AppendAsync("https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/BoxTextured/glTF/BoxTextured.gltf").then(function () { | |
//BABYLON.SceneLoader.AppendAsync("https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Suzanne/glTF/Suzanne.gltf").then(function () { | |
//BABYLON.SceneLoader.AppendAsync("https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/Avocado/glTF/Avocado.gltf").then(function () { | |
//BABYLON.SceneLoader.AppendAsync("https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Models/master/2.0/BoomBox/glTF/BoomBox.gltf").then(function () { |
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
android { | |
defaultConfig { | |
applicationId "com.android.babylonnative.playground" | |
minSdkVersion "${platformVersion}" | |
targetSdkVersion 31 | |
ndkVersion "23.1.7779620" | |
if (project.hasProperty("NDK_VERSION")) { | |
def NDKVersion = project.property("NDK_VERSION") | |
ndkVersion "${NDK_VERSION}" | |
} |
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
externalNativeBuild { | |
cmake { | |
version '3.29.3+' | |
path 'CMakeLists.txt' | |
buildStagingDirectory "../../../../Build/Android" | |
} | |
} |
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
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | |
<application | |
android:allowBackup="false" | |
android:fullBackupContent="false" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/playground_activity"> | |
<activity android:name="PlaygroundActivity" | |
android:exported="true" <!--この行を新規追加 --> | |
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" | |
android:launchMode="singleTask" |
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
%%変更前 | |
\newcommand{\small}{% | |
\ifnarrowbaselines | |
\jsc@setfontsize\small\@ixpt{11}% | |
\else | |
\jsc@setfontsize\small\@ixpt{13}% | |
\fi | |
%%変更後 | |
\newcommand{\small}{% |
NewerOlder