🧙♂️
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
FREObject bitmapData2UIImage(FREContext ctx, void* funcData, | |
uint32_t argc, FREObject argv[]) { | |
FREObject data = argv[0]; | |
FREBitmapData2 bitmapData; | |
FREAcquireBitmapData2(data, &bitmapData); | |
int width = bitmapData.width; | |
int height = bitmapData.height; |
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 | |
{ | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.Shape; | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
import flash.events.MouseEvent; |
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
import { LandscapeApp, PrismController, ui } from 'lumin'; | |
const { UiText | |
, EclipseLabelType | |
, Alignment | |
, HorizontalTextAlignment | |
, UiLinearLayout, UiButton} = ui; | |
export class App extends LandscapeApp { | |
onAppStart () { | |
let app = this; |
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:ml="magicleap" ml:package="Placeholder" ml:version_code="1" ml:version_name="1.0"> | |
<application ml:min_api_level="8" ml:sdk_version="1.0" ml:visible_name="Placeholder"> | |
<uses-privilege ml:name="ControllerPose" /> | |
<component ml:binary_name="bin/Player.elf" ml:name=".fullscreen" ml:type="Fullscreen" ml:visible_name="Placeholder" ml:subtype="Concept"> | |
<icon ml:model_folder="Icon/Model" ml:portal_folder="Icon/Portal"/> | |
</component> | |
</application> | |
</manifest> |
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
export PATH=$PATH:~/bin:~/MagicLeap/mlsdk/<version>/:~/MagicLeap/mlsdk/<version>/tools/mldb |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.XR.MagicLeap; | |
public class ControllerConnectedTest : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
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 System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.XR.MagicLeap; | |
using MagicLeap.Core; | |
public class PersistentBehavior : MonoBehaviour | |
{ | |
[SerializeField] | |
private string uniqueId = null; | |
private TransformBinding binding = null; |
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 UnityEngine; | |
using UnityEngine.XR.MagicLeap; | |
using MagicLeap.Core; | |
public class PersistentBehavior : MonoBehaviour | |
{ | |
[SerializeField] | |
private string uniqueId = null; | |
private TransformBinding binding = null; |
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.XR.MagicLeap; | |
public class MyControl : MonoBehaviour | |
{ | |
[SerializeField] | |
private PersistentBehavior persistentBehavior; | |
private GameObject _cube, _camera; | |
private MLInput.Controller _controller; | |
private const float _distance = 2.0f; |
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
export class App extends LandscapeApp { | |
onAppStart (args) { | |
// Create a new prism that's half a meter cubed. | |
const prism = this.requestNewPrism([0.5, 0.5, 0.5]); |
OlderNewer