1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Spark AR】Native UI SliderでSkin Smoothing

Last updated at Posted at 2020-02-13

MaterialのSherder Type>Retouching>Skin SmoothingをNative UI Sliderで使いたいくてちょっといじってみたんだけど、公式のソースをコピペしたらエラーが出たので修正。

Adding the Native UI Slider

Exampleの1行目がNUIなのに8行目でNativeUI使ってるので、それ揃えるのが正解。

const NUI = require("NativeUI");
const M = require('Materials');
const Time = require('Time');

// Slider
var lastSliderValue = 0.5;
const mat = M.get('angery_mat');
const nativeUISlider = NativeUI.slider;

上記を修正したらmat.opacityskinSmoothingFactorに。

Scripting Object ReferenceからたどってってRetouchingMaterial参照。

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?