Пример #1
0
        public override void Serialize(ExporterEntry entry, Dictionary <string, Extension> extensions, UnityEngine.Object component = null, object options = null)
        {
            var extension = new Sein_audioListenerExtension();
            var listener  = component as SeinAudioListener;

            extension.rotatable = listener.rotatable;

            AddExtension(extensions, extension);
        }
Пример #2
0
        public override Extension Deserialize(GLTFRoot root, JProperty extensionToken)
        {
            var extension = new Sein_audioListenerExtension();

            if (extensionToken != null)
            {
                extension.rotatable = (bool)extensionToken.Value["rotatable"];
            }

            return(extension);
        }